<link>.preMultLinkable

Create pre-multiply linkable operator

 

<link>.preMultLinkable(
    linkable    
    mask = viz.LINK_POS | viz.LINK_ORI    
    flag = 0    
    priority = 0    
    target = viz.LINK_FULL_OP    

)

 

linkable

Any linkable object


mask = viz.LINK_POS | viz.LINK_ORI

A mask that controls which values of the linkable are multiplied with the input matrix. Can be a combination of the following values:

Link masks

viz.LINK_POS

Position value will be multiplied with the input matrix.

viz.LINK_ORI

Orientation value will be multiplied with the input matrix.

viz.LINK_SCALE

Scale value will be multiplied with the input matrix.

viz.LINK_ALL

All available values will be multiplied with the input matrix. A combination of all the above values.


flag = 0

The flag to use when retrieving linkable values. See <link>.setSrcFlag for list of possible values.


priority = 0

Priority of operator


target = viz.LINK_FULL_OP

One of the following values:

Link operator targets

viz.LINK_FULL_OP

The operator will be applied to combined data of the link.

viz.LINK_POS_OP

The operator will be applied to position data of the link.

viz.LINK_ORI_OP

The operator will be applied to orientation data of the link.


Remarks

This command will create an operator that will pre-multiply the input matrix with the matrix of the specified linkable object. The mask value controls which values are taken from the linkable to construct the matrix. The flag value is used when retrieving the values from the linkable.

Return Value

Operator object

See also

<link>.setMask
<link>.setSrcFlag