Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

How do I move the pivot along the local axis?

How do I move the pivot along the local axis?

ivanchin.ivan
Contributor Contributor
822 Views
3 Replies
Message 1 of 4

How do I move the pivot along the local axis?

ivanchin.ivan
Contributor
Contributor

How do I move the pivot along the local axis?

 

from pymxs import runtime as mxs

mxs.clearListener()

obj = mxs.selection[0]
mxs.setRefCoordSys(mxs.Name('local'))

obj.pivot = mxs.Point3(claw.pivot.x, claw.pivot.y, claw.pivot.z + 0.5)

When the code is run, it moves along a non-local axis. thanks

0 Likes
Accepted solutions (2)
823 Views
3 Replies
Replies (3)
Message 2 of 4

istan
Advisor
Advisor
Accepted solution
0 Likes
Message 3 of 4

ivanchin.ivan
Contributor
Contributor
I need to shift the pivot along the local axis and not the object
0 Likes
Message 4 of 4

ivanchin.ivan
Contributor
Contributor
Accepted solution

figured it out. as always, all through one place, why complicate everything so much ... Thanks for the hint

0 Likes