<link>.clampPosZ

Create operator that clamps Z position to a specified range

 

<link>.clampPosZ(
    [min,max]    
    priority = 0    
    target = viz.LINK_FULL_OP    

)

 

[min,max]

The minimum and maximum range to allow for the Z 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 Z position of the incoming matrix to the specified [min,max] range.

Return Value

Operator object

Example

link = viz.link(src,dst)

link.clampPosZ([-5,5])

See also

<link>.clampPosX
<link>.clampPosY