[mobu] Enable Transformation property question

Hello,

been searching for a way to deselect the “enable transformation” property.
Can’t seem to find it anywhere, i searched under the FBModel class, there is the Show option and you can modify it, but no Enable Transformation or Enable Selection.
Did they have a different name before? The other properties don’t seem to apply.

wish to make it work this way:

lModelList = FBModelList()

lModel = FBFindModelByName( “model_name” )

lModel.Show = True
lModel.EnableTransformation= False

Anyone has any idea?

p.s the Enable Selection is the Pickable property, still nothing about Transformation

Found the solution for what i was looking for, basically I needed to lock down the bones of the skeleton, and allow control over the control rig only.

It’s a really odd way of doing things but it works:

lModel = FBFindModelByName( "bone" )

lProp = lModel.PropertyList.Find( 'Transformable' )
if lProp:
   lProp.Data = False

Hope it is of use to others as well. :slight_smile:

If anyone is looking for a way to search for all the children under a certain node(FBModel type) this is how I did it:


def hierarchy(lModel):      
    for child in lModel.Children:
        lModelList.append(child)
        hierarchy(child)

lModel = FBFindModelByName( "bone" )
hierarchy(lModel)