MotionBuilder Custom Property .Selected not exposed to Python

When using Python in MotionBuilder, you can select object in the scene using the Python .Selected property. When setting that property to True, you would put the object into the selection list. However, Custom Properties do not have their .Selected Python property exposed which makes in theory impossible to select them programmatically.

Hopefully there is a workaround :)

The workaround is to use the .SetFocus() method. When using that method with the parameter set to True, you will put the property object onto the selection.


Comments

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading