Drops selected objects on to the active object #25349

Closed
opened 12 years ago by kodemax · 26 comments
Collaborator

Project: Blender Extensions
Tracker: Py Scripts Contrib
Python: 3.2
Blender: 2.62
Dependencies: mathutils, bmesh
Author(s): Unnikrishnan (kodemax), Florian Meyer (tstscr)
Script name: Drop to Ground
Wiki page: http://wiki.blender.org/index.php/Extensions:2.5/Py/Scripts/Object/Drop_to_ground
Category: Object
SVN Download: https://svn.blender.org/svnroot/bf-extensions/contrib/py/scripts/addons/object_drop_to_ground.py
Status: Open

%%%There are 2 files uploaded. One is a text file containing the script and 2nd is a sample set up
This script basically allows the artist to drop objects onto a certain ground.
To use this, set up a ground onto which the objects are to be dropped and objects directly on top of the ground. The objects fall along the z axis.
A sample set up is done in the uploaded 'Drop2Ground.blend' file
Once the setup is ready, first select all the objects to be dropped and finally select the ground so that the ground is the active object.
Then run the script :) The object falls and aligns it's z axis along the normal at the point on the ground where it lands.%%%

**Project**: Blender Extensions **Tracker**: Py Scripts Contrib **Python**: 3.2 **Blender**: 2.62 **Dependencies**: mathutils, bmesh **Author(s)**: Unnikrishnan (kodemax), Florian Meyer (tstscr) **Script name**: Drop to Ground **Wiki page**: http://wiki.blender.org/index.php/Extensions:2.5/Py/Scripts/Object/Drop_to_ground **Category**: Object **SVN Download**: https://svn.blender.org/svnroot/bf-extensions/contrib/py/scripts/addons/object_drop_to_ground.py **Status**: Open %%%There are 2 files uploaded. One is a text file containing the script and 2nd is a sample set up This script basically allows the artist to drop objects onto a certain ground. To use this, set up a ground onto which the objects are to be dropped and objects directly on top of the ground. The objects fall along the z axis. A sample set up is done in the uploaded 'Drop2Ground.blend' file Once the setup is ready, first select all the objects to be dropped and finally select the ground so that the ground is the active object. Then run the script :) The object falls and aligns it's z axis along the normal at the point on the ground where it lands.%%%
Poster
Collaborator

Changed status to: 'Open'

Changed status to: 'Open'

This task was automatically closed as archived as part of migration, because it was determined to be no longer active.

The authoritative list of addons is on the wiki, we no longer have a report for each addon to track bugs and updates. Bugs can be reported individually and assigned to the addon developers. See the #Addons project page for more information on the workflow.

This task was automatically closed as archived as part of migration, because it was determined to be no longer active. The authoritative list of addons is on the wiki, we no longer have a report for each addon to track bugs and updates. Bugs can be reported individually and assigned to the addon developers. See the #Addons project page for more information on the workflow.

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
None-1 closed this issue 12 years ago
Collaborator

%%%attached the new file from kodemax.
recoded as an addon operator%%%

%%%attached the new file from kodemax. recoded as an addon operator%%%
Poster
Collaborator

%%%Hey i wanna make a few more tweaks :) Will submit tomo. :)%%%

%%%Hey i wanna make a few more tweaks :) Will submit tomo. :)%%%

%%%added wiki page%%%

%%%added wiki page%%%
Poster
Collaborator

%%%Adding an updated script.%%%

%%%Adding an updated script.%%%
jawra commented 12 years ago

%%%No links to file and tracker at wiki. Can you add this.%%%

%%%No links to file and tracker at wiki. Can you add this.%%%
Poster
Collaborator

%%%Added an interface with 2 extra options. So attaching the new script%%%

%%%Added an interface with 2 extra options. So attaching the new script%%%
Collaborator

%%%hi, is the script updated in 2.57?
maybe we can look at moving this to contrib.%%%

%%%hi, is the script updated in 2.57? maybe we can look at moving this to contrib.%%%
Poster
Collaborator

%%%Script has been updated to 2.57 :)%%%

%%%Script has been updated to 2.57 :)%%%
Collaborator

%%%thanks, it works great.
%%%

%%%thanks, it works great. %%%
Collaborator

%%%hi,
it would be great if this script took into account rotation also.
currently, rotations are lost when the objects drop.
Thanks.
%%%

%%%hi, it would be great if this script took into account rotation also. currently, rotations are lost when the objects drop. Thanks. %%%
Poster
Collaborator

%%%Sorry, i did not quite understand. The script has a feature to avoid changing the rotation and just drop. If the align option is checked, the object changes all its current rotation and aligns to the ground, Can you just specify what is to be done please? thanx :)%%%

%%%Sorry, i did not quite understand. The script has a feature to avoid changing the rotation and just drop. If the align option is checked, the object changes all its current rotation and aligns to the ground, Can you just specify what is to be done please? thanx :)%%%
Collaborator

%%%hi, updated script to svn revision 39740
Also reversed matrix order to update for api changes.
check the attatchment.
thanks.%%%

%%%hi, updated script to svn revision 39740 Also reversed matrix order to update for api changes. check the attatchment. thanks.%%%
Collaborator

%%%Hi,
Just a Reminder for people to Join the Mail List.
If you have not already, please visit this page:
http://lists.blender.org/mailman/listinfo/bf-extensions-cvs
& join the list.%%%

%%%Hi, Just a Reminder for people to Join the Mail List. If you have not already, please visit this page: http://lists.blender.org/mailman/listinfo/bf-extensions-cvs & join the list.%%%
Collaborator

%%%assigned to myself, tested script, marked for contrib.%%%

%%%assigned to myself, tested script, marked for contrib.%%%
Collaborator

%%%Moved from Py Scripts Upload to Py Scripts Contrib%%%

%%%Moved from Py Scripts Upload to Py Scripts Contrib%%%
Collaborator

%%%moving to contrib%%%

%%%moving to contrib%%%
Collaborator

%%%[canned response]

We gave you bf-extensions rights, read details at:


  • You can work on svn in contrib/ directory
See a help panel about svn here:
http://wiki.blender.org/index.php/Dev:Extensions/Sharing/SVN_Help
Don\'t forget to add a meaningful message at each svn commit
The password for svn is the same as the one you use to log in in this tracker.
  • We invited you to our commits mailing list
see http://lists.blender.org/mailman/listinfo/bf-extensions-cvs
Please subscribe, so that your commit mail will be sent to

subscribers instead of hanging on

You should have received a mail already about it, if not,

please leave a line here, thx!

  • Move your script in contrib/ directory in svn (if it's not
    there already)

  • We are assigning this script to yourself, so that you are
    responsible for maintenance.

Please click on "Monitor" to receive updates when people edit

your extension tracker page

  • Finally, we have moved this tracker page from the original
    location in "Upload", so check the tracker_url field and commit
    in bf-extensions

Thanks and welcome aboard! :)%%%

%%%[canned response] We gave you bf-extensions rights, read details at: - http://wiki.blender.org/index.php/Dev:Py/Sharing - http://wiki.blender.org/index.php/Dev:2.5/Py/Scripts/Guidelines/Addons ----- * You can work on svn in contrib/ directory ``` See a help panel about svn here: http://wiki.blender.org/index.php/Dev:Extensions/Sharing/SVN_Help ``` ``` Don\'t forget to add a meaningful message at each svn commit ``` ``` The password for svn is the same as the one you use to log in in this tracker. ``` * We invited you to our commits mailing list ``` see http://lists.blender.org/mailman/listinfo/bf-extensions-cvs ``` ``` Please subscribe, so that your commit mail will be sent to ``` subscribers instead of hanging on ``` You should have received a mail already about it, if not, ``` please leave a line here, thx! * Move your script in contrib/ directory in svn (if it\'s not there already) * We are assigning this script to yourself, so that you are responsible for maintenance. ``` Please click on "Monitor" to receive updates when people edit ``` your extension tracker page * Finally, we have moved this tracker page from the original location in "Upload", so check the tracker_url field and commit in bf-extensions Thanks and welcome aboard! :)%%%
Collaborator

%%%Hi,
Due to changes to the api including the merging of bmesh, several addons are outdated.
Please, if you are the author of an addon check your script with blender revision 44256 or newer.
That is builds made After blender 2.62 official release.
I would ask that updates be made to your addon before the Blender 2.63 release.
6-8 weeks away.
This allows time for the api to become more exposed & bmesh to stablize furthur.
If you need help, drop into irc freenode #blenderpython or #blendercoders & feel welcome to ask questions.
At the time of 2.63 release, scripts that are not repaired or in active developement will have their tracker page marked "Closed"
this will not affect your links to the tracker, similar to closing scripts in 2.49b, the page will be still availible & can be re-opened.

Thanks for your understanding & patience during these Exciting Times.
Brendon.%%%

%%%Hi, Due to changes to the api including the merging of bmesh, several addons are outdated. Please, if you are the author of an addon check your script with blender revision 44256 or newer. That is builds made After blender 2.62 official release. I would ask that updates be made to your addon before the Blender 2.63 release. 6-8 weeks away. This allows time for the api to become more exposed & bmesh to stablize furthur. If you need help, drop into irc freenode #blenderpython or #blendercoders & feel welcome to ask questions. At the time of 2.63 release, scripts that are not repaired or in active developement will have their tracker page marked "Closed" this will not affect your links to the tracker, similar to closing scripts in 2.49b, the page will be still availible & can be re-opened. Thanks for your understanding & patience during these Exciting Times. Brendon.%%%
Collaborator

%%%Updated the script

  1. uses bmesh now
  2. removed the panel (superfluous). moved into the tool shelf
  3. added support for linked groups (not recursively linked groups yet, just groups of meshes for now)
  4. removed the random location feature (not that usefull, was a pre-drop operation anyway. can be achieved by running a randomize operator beforehand)
  5. less hacky
  6. save for 2.63%%%
%%%Updated the script 1. uses bmesh now 2. removed the panel (superfluous). moved into the tool shelf 3. added support for linked groups (not recursively linked groups yet, just groups of meshes for now) 4. removed the random location feature (not that usefull, was a pre-drop operation anyway. can be achieved by running a randomize operator beforehand) 5. less hacky 6. save for 2.63%%%
Collaborator

%%%Hello guys, I have this error with r52536

Dropping Objects
Traceback (most recent call last):

File "C:\Downloads\26\2.64\scripts\addons_contrib\object_drop_to_ground.py", l

ine 164, in execute

  drop_objects(self, context)
File "C:\Downloads\26\2.64\scripts\addons_contrib\object_drop_to_ground.py", l

ine 100, in drop_objects

  lowest_world_co = get_lowest_world_co(context, ob)
File "C:\Downloads\26\2.64\scripts\addons_contrib\object_drop_to_ground.py", l

ine 71, in get_lowest_world_co

  return get_lowest_world_co_from_mesh(ob)
File "C:\Downloads\26\2.64\scripts\addons_contrib\object_drop_to_ground.py", l

ine 54, in get_lowest_world_co_from_mesh

  bme.from_object(ob)

TypeError: from_object() takes at least 2 arguments (1 given)%%%

%%%Hello guys, I have this error with r52536 Dropping Objects Traceback (most recent call last): ``` File "C:\Downloads\26\2.64\scripts\addons_contrib\object_drop_to_ground.py", l ``` ine 164, in execute ``` drop_objects(self, context) File "C:\Downloads\26\2.64\scripts\addons_contrib\object_drop_to_ground.py", l ``` ine 100, in drop_objects ``` lowest_world_co = get_lowest_world_co(context, ob) File "C:\Downloads\26\2.64\scripts\addons_contrib\object_drop_to_ground.py", l ``` ine 71, in get_lowest_world_co ``` return get_lowest_world_co_from_mesh(ob) File "C:\Downloads\26\2.64\scripts\addons_contrib\object_drop_to_ground.py", l ``` ine 54, in get_lowest_world_co_from_mesh ``` bme.from_object(ob) ``` TypeError: from_object() takes at least 2 arguments (1 given)%%%
Collaborator

%%%fixed by replacing from_object(ob) by from_mesh(ob.data)

from_object now expects a scene as 2nd param, but accessing the bmesh ob afterwards crashes Blender for some reason?!

http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4152%%%

%%%fixed by replacing from_object(ob) by from_mesh(ob.data) from_object now expects a scene as 2nd param, but accessing the bmesh ob afterwards crashes Blender for some reason?! http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4152%%%

Added subscriber: @YokoTsumo

Added subscriber: @YokoTsumo

Drop to Ground add-on can not be added in Blender 2.72a (worked until 2.71)

Returned error when trying to add it: AttributeError: 'RNA_Types' object has no attribute 'VIEW3D_PT_tools_objectmode'

Drop to Ground add-on can not be added in Blender 2.72a (worked until 2.71) Returned error when trying to add it: AttributeError: 'RNA_Types' object has no attribute 'VIEW3D_PT_tools_objectmode'
Sign in to join this conversation.
No Label
good first issue
legacy module/Animation & Rigging
legacy module/Core
legacy module/Eevee & Viewport
legacy module/Grease Pencil
legacy module/Modeling
legacy module/Nodes & Physics
legacy module/Pipeline, Assets & IO
legacy module/Platforms, Builds, Tests & Devices
legacy module/Python API
legacy module/Rendering & Cycles
legacy module/Sculpt, Paint & Texture
legacy module/User Interface
legacy module/VFX & Video
legacy project/2.81
legacy project/2.82
legacy project/2.83
legacy project/2.90
legacy project/2.92
legacy project/2.93
legacy project/3.0
legacy project/3.1
legacy project/3.2
legacy project/3.4
legacy project/Add-ons (BF-Blender)
legacy project/Add-ons (Community)
legacy project/Alembic
legacy project/Animation & Rigging
legacy project/Asset Browser
legacy project/Automated Testing
legacy project/BF Blender: 2.8
legacy project/BF Blender: After Release
legacy project/BF Blender: Next
legacy project/BF Blender: Regressions
legacy project/BF Blender: Unconfirmed
legacy project/Blender 2.70
legacy project/Blender Cloud
legacy project/Code Quest
legacy project/Collada
legacy project/Compositing
legacy project/Core
legacy project/Cycles
legacy project/Datablocks and Libraries
legacy project/Dependency Graph
legacy project/Documentation
legacy project/EEVEE & Viewport
legacy project/Freestyle
legacy project/Game Data Conversion
legacy project/Game Engine
legacy project/Game Physics
legacy project/Game Python
legacy project/Game UI
legacy project/Geometry Nodes
legacy project/Good First Issue
legacy project/Grease Pencil
legacy project/Images & Movies
legacy project/Import/Export
legacy project/Infrastructure: Blender Buildbot
legacy project/Infrastructure: Blender Web Assets
legacy project/Infrastructure: Websites
legacy project/Modeling
legacy project/Modifiers
legacy project/Motion Tracking
legacy project/Nodes
legacy project/Nodes & Physics
legacy project/OpenGL Error
legacy project/Overrides
legacy project/Papercut
legacy project/Physics
legacy project/Pillar
legacy project/Pipeline, Assets & I/O
legacy project/Platform: Linux
legacy project/Platform: macOS
legacy project/Platforms, Builds, Tests & Devices
legacy project/Platform: Windows
legacy project/Python API
legacy project/Render & Cycles
legacy project/Render Pipeline
legacy project/Sculpt, Paint & Texture
legacy project/Straightforward Issue
legacy project/Text Editor
legacy project/Tracker Curfew
legacy project/Translations
legacy project/USD
legacy project/User Interface
legacy project/UV Editing
legacy project/VFX & Video
legacy project/Video Sequencer
legacy project/Virtual Reality
papercut
Priority › High
Priority › Low
Priority › Normal
Priority › Unbreak Now!
Status › Archived
Status › Confirmed
Status › Duplicate
Status › Needs Information from Developers
Status › Needs Information from User
Status › Needs Triage
Status › Resolved
straightforward issue
Type › Bug
Type › Design
Type › Known Issue
Type › Patch
Type › Report
Type › To Do
No Milestone
No project
No Assignees
9 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#25349
Loading…
There is no content yet.