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.

SetTransformLock and pymxs

SetTransformLock and pymxs

mrBort
Explorer Explorer
1,044 Views
2 Replies
Message 1 of 3

SetTransformLock and pymxs

mrBort
Explorer
Explorer

Hi,

 

I try to transition from Maxscript to Pymxs. With the current state of the docs, i cannot wrap my head around how to access "SetTransformLock" in pymxs. Any help is appriciated. Does someone know how to figure out where specific funktions like this are accessable in pymxs. With "SetTransformLock" i would guess it should be a function of the node class. 

 

Also having my roots in Maya and Python and Pymel. Its dokumentation is very good. With examples for each method and clear overviews over every class and function. Is there a plan to have a direct dokumentation for pymxs? 

 

Thanks,

Bernd

0 Likes
Accepted solutions (1)
1,045 Views
2 Replies
Replies (2)
Message 2 of 3

Swordslayer
Advisor
Advisor
Accepted solution

Pymxs is a runtime wrapper around the MAXScript engine, so you use maxscript functions, not the SDK methods. In this case, that would be

 

pymxs.runtime.setTransformLockFlags(pymxs.runtime.getCurrentSelection(), pymxs.runtime.name("all"))
0 Likes
Message 3 of 3

mrBort
Explorer
Explorer

Thanks very much for your quick response

0 Likes