OpenMaya.MFnTransform

bnGetScale Retrieve the scale component.
bnSetScale Set the scale component.
bnScaleBy Add to the scale component by scaling relatively.
bnGetShear Retrieve the shear component.
bnSetShear Set the shear component.
bnShearBy Add to the shear component by shearing relatively.

MFnTransform.bnGetScale()[source]

Retrieve the scale component.

Categories: MScriptUtil.

Returns:The scale component.
Return type:list [x, y, z]

MFnTransform.bnSetScale(scale)[source]

Set the scale component.

Categories: MScriptUtil.

Parameters:scale (sequence of 3 floats) – New scale component.

MFnTransform.bnScaleBy(scale)[source]

Add to the scale component by scaling relatively.

Categories: MScriptUtil.

Parameters:scale (sequence of 3 floats) – Relative value to scale by.

MFnTransform.bnGetShear()[source]

Retrieve the shear component.

Categories: MScriptUtil.

Returns:The shear component.
Return type:list [x, y, z]

MFnTransform.bnSetShear(shear)[source]

Set the shear component.

Categories: MScriptUtil.

Parameters:shear (sequence of 3 floats) – New shear component.

MFnTransform.bnShearBy(shear)[source]

Add to the shear component by shearing relatively.

Categories: MScriptUtil.

Parameters:shear (sequence of 3 floats) – Relative value to shear by.