Vizard 8 » Command Index » Vizard modules » viz » <viz>.link
8.0

<viz>.link

Link two objects

<viz>.link(  
src  
dst  
priority = 0  
mask = None # Keyword argument
srcFlag = None # Keyword argument
dstFlag = None # Keyword argument
offset = None # Keyword argument
enabled = None # Keyword argument
)  
src
Source object
dst
Destination object
priority = 0
The priority of the link. Vizard updates links in order of their priority from lowest to highest.
mask = None
Initial link mask
srcFlag = None
Initial source flag
dstFlag = None
Initial destination flag
offset = None
Initial offset
enabled = None
Initial enabled mode

Remarks

This command will link the destination object to the source object. When two objects are linked, the position/rotation of the source object will automatically be applied to the destination object.

The returned link object allows you to specify how the objects are linked.

The following objects are supported as source objects:

Object Type

Source Mask

Nodes

viz.LINK_POS | viz.LINK_ORI | viz.LINK_SCALE

View

viz.LINK_POS | viz.LINK_ORI

Bones

viz.LINK_POS | viz.LINK_ORI

Animation Paths

viz.LINK_POS | viz.LINK_ORI | viz.LINK_SCALE

Control Points

viz.LINK_POS | viz.LINK_ORI | viz.LINK_SCALE

On-The-Fly Vertices
<node3d:onthefly>.Vertex

viz.LINK_POS

vec3/vec4 Uniforms

viz.LINK_POS

mat4 Uniforms

viz.LINK_POS | viz.LINK_ORI | viz.LINK_SCALE

Transform Sub-Nodes
<node3d>.getTransform

viz.LINK_POS | viz.LINK_ORI | viz.LINK_SCALE

Sensors

Depends on sensor plugin

Links

Depends on source

Mouse
viz.Mouse

viz.LINK_POS

Merge Linkable
<viz>.mergeLinkable

viz.LINK_POS | viz.LINK_ORI

Blend Linkable
<viz>.blendLinkable

Depends on sources

Window Position Anchors
<window>.LeftTop
<window>.LeftCenter
<window>.LeftBottom
<window>.RightTop
<window>.RightCenter
<window>.RightBottom
<window>.CenterTop
<window>.CenterCenter
<window>.CenterBottom

viz.LINK_POS

Window Size
<window>.WindowSize

viz.LINK_SCALE

Window View
<window>.WindowView

viz.LINK_POS | viz.LINK_ORI



The following objects are supported as destination objects:

Object Type

Destination Mask

Nodes

viz.LINK_POS | viz.LINK_ORI | viz.LINK_SCALE

View

viz.LINK_POS | viz.LINK_ORI

Bones

viz.LINK_POS | viz.LINK_ORI

Control Points

viz.LINK_POS | viz.LINK_ORI | viz.LINK_SCALE

On-The-Fly Vertices
<node3d:onthefly>.Vertex

viz.LINK_POS

vec3/vec4 Uniforms

viz.LINK_POS

mat4 Uniforms

viz.LINK_POS | viz.LINK_ORI | viz.LINK_SCALE

Transform Sub-Nodes
<node3d>.getTransform

viz.LINK_POS | viz.LINK_ORI | viz.LINK_SCALE

Return Value

Link object