Vizard 8 » Command Index » Vizard objects » operator » <operator:translation>.setPosition
8.0

<operator:translation>.setPosition

Sets the position value of the operator.

<operator:translation>.setPosition(  
[ x, y, z ]  
)  
[ x, y, z ]
Position

Remarks

If this is a translation operator, the command will set the position.

Return Value

None

Example

male = viz.addAvatar( 'vcc_male.cfg' )
viewLink = viz.link( male, viz.MainView )
translateOperator = viewLink.preTrans([0, 10, 0])
translateOperator.setPosition([0, 0, 5]) #Change translation

See also

<link>.postTrans
<link>.preTrans