Drops selected objects on to the active object #25349

Closed
opened 2010-12-22 18:40:04 +01:00 by Unni Krishnan · 26 comments
Member

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.%%%
Author
Member

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'
Member

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

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

%%%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%%%
Author
Member

%%%Adding an updated script.%%%

%%%Adding an updated script.%%%

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

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

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

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

%%%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.%%%
Author
Member

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

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

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

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

%%%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. %%%
Author
Member

%%%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 :)%%%
Member

%%%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.%%%
Member

%%%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.%%%
Member

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

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

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

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

%%%moving to contrib%%%

%%%moving to contrib%%%
Member

%%%[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! :)%%%
Member

%%%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.%%%
Member

%%%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%%%

%%%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)%%%
Member

%%%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 Milestone
No project
No Assignees
9 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#25349
No description provided.