PDA

View Full Version : Create box at pivotpoint


Devoney
08-11-2009, 01:46 PM
Hi,
When I create a box with maxscript it puts the box on top of the coordinate system. The pivot point is in the center of the box. But I want de coordinates of the box to refer to the pivot point. When I create the box with pos 0 0 0 I want the pivotpoint to be on 0 0 0 and be in the center of the box. But I can not found out which options to set to reach my goal.
Thanks for helping!
Devoney

mrapelje
08-12-2009, 11:55 PM
Try this:

B = Box()
B.pivot = [ B.center.x , B.center.y , B.center.z ]
B.pos = [0,0,0]

CGTalk Moderation
08-12-2009, 11:55 PM
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.