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

<link>.setPos

Create operator that sets the position

<link>.setPos(  
[x,y,z]  
priority = 0  
target = viz.LINK_FULL_OP  
)  
[x,y,z]
Position
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 position 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)

#Set the y position to 2, but leave x,z unchanged
link.setPos([None,2,None])