snap to lowest vertex

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  01 January 2011
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
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
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.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 02:48 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.