...
Scroll tablelayout | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
Returns the distance in mm from node1 to node2
Examples
Code Block | ||
---|---|---|
| ||
// create a clip |
...
create Clip Clip_1; |
...
...
// create two objects which we want to compute distances between |
...
create Marker Marker_1; |
...
create Bone Bone_1; |
...
...
// move the bone 300 and 400 in x, y (respectively |
...
setKey "Translation.X" 300 -onMod Bone_1; |
...
setKey "Translation.Y" 400 -onMod Bone_1; |
...
...
// show that the bone is 500 mm away from the marker as expected |
...
print(getDistance("Marker_1", "Bone_1")); |
Additional information
Related commands
...