Message 1 of 3
Python (MaxPlus) - How to move pivot of an object on a single axis?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there,
I'm trying to learn Python (MaxPlus) for 3ds Max. I need to be able to move an object's pivot point along a single axis (preferably to the bottom of the object's bounding box). I have tried everything I can think of but it seems like the only Pivot methods/attributes for the INode class is CenterPivot, AlignPivot, etc.. I haven't found any way to edit the pivot otherwise. Is there a method or attribute I'm missing or am I doing it all wrong lol? Comments are the statements I am wanting to be able to do. Any advice would be greatly appreciated. Thanks.
import MaxPlus scene_objs = MaxPlus.Core.GetRootNode().Children for obj in scene_objs: obj.CenterPivot(0, False)
# obj.PivotZ = MaxPlus.Point3(0, 0, -5)
# and/or # obj.PivotZ = obj.BoundBoxZ