Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Scroll tablelayout
sortDirectionASC
repeatTableHeadersdefaultstyle
widths19%, 15%, 14%, 15%, 37%
style
sortByColumn1
sortEnabledfalse
cellHighlightingtrue

...

Returns the distance in mm from node1 to node2

Examples

Code Block
languagetext
// 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

...