SetTransformLock and pymxs

mrBort
Explorer

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
Reply
Accepted solutions (1)
943 Views
2 Replies
Replies (2)

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

mrBort
Explorer
Explorer

Thanks very much for your quick response

0 Likes