|01 January 2011||#1|
rays of light
Join Date: Jan 2005
snap to lowest vertex
we already head a similiar post here..
but I have 5000+ cubes (instances) floating above the ground..
I need to move them down to the ground plane. can't use particles with collision anymore.
the easiest solution in my mind is snap the locator of the selected cube to the very bottom.
then move the cube until it snaps to the ground.
but I have no idea how to script that since snapping doesn't exist in the documentation!?
input very welcome
|01 January 2011||#2|
Lord of the posts
Join Date: Aug 2004
query world space bounding box (via xform). Get the minimum world space bounds value for Y axis (or which ever you are using for up). Use the move command (or xform) to move (0, -Y_world_space_bounds_min, 0). Done.
|01 January 2011||#3|
Join Date: Sep 2003
Thread automatically closed
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
|Thread Closed share thread|