Vizard 7 » Command Index » Vizard objects » link » <link>.setEuler
7.7

<link>.setEuler

Create operator that sets the euler

<link>.setEuler(  
[yaw, pitch, roll]  
priority = 0  
target = viz.LINK_FULL_OP  
)  
[yaw, pitch, roll]
Euler rotation
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 set the euler of the incoming matrix. If 'None' is specified as one of the coordinates, then the incoming coordinate will be unchanged.

Return Value

Operator object

Example

link = viz.link(src,dst)

#Keep the incoming yaw, but zero the pitch and roll
link.setEuler([None,0,0])