Main Content

propagate

Propagate value of selected property to actor and its children

Since R2022b

    Description

    propagate(actor,PropertyName,PropertyValue) propagates the property value specified by PropertyValue to the PropertyName property of actor.

    propagate(actor,PropertyName,PropertyValue,Condition) restricts propagation according to the value of Condition.

    Input Arguments

    collapse all

    Actor object, specified as a sim3d.Actor object.

    Example: actor = sim3d.Actor()

    Name of property being propagated to actor, specified as one of the Properties of the sim3d.Actor object. Propagating Physics and Mobility properties of the actor object might cause unexpected behavior. If you propagate Physics property, the parent-child relationship of the actor object might break.

    Value of property propagated to actor, specified as one of the Properties of the sim3d.Actor object.

    Where to propagate property value, specified as 'all', 'children', or 'selected', where

    • 'all' – Propagate value to actor and all its children.

    • 'children' – Propagate value only to children but not to actor itself.

    • 'selected' – Propagate value only to selected sim3d.Actor objects.

    Version History

    Introduced in R2022b

    See Also

    | |