Vizard 8 » Command Index » Vizard objects » link » <link>.clampPosX
8.0

<link>.clampPosX

Create operator that clamps X position to a specified range

<link>.clampPosX(  
[min,max]  
priority = 0  
target = viz.LINK_FULL_OP  
)  
[min,max]
The minimum and maximum range to allow for the X position. You can use None for either min/max to specify no limit for min/max.
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 clamp the X position of the incoming matrix to the specified [min,max] range.

Return Value

Operator object

Example

link = viz.link(src,dst)

link.clampPosX([-5,5])

See also

<link>.clampPosY
<link>.clampPosZ