Versions Compared

Key

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

...

To be really useful, however, your scripts must be readable, easy to customize, and bulletproof. Follow these suggestions when you This page covers how to create scripts and you will find that you offers tips for you and your associates on how to spend less time looking for bugs and more time producing high quality motion capture animation:.

Scroll only
scroll-viewporttrue
scroll-pdftrue
scroll-officetrue
scroll-chmtrue
scroll-htmltrue
scroll-docbooktrue
scroll-eclipsehelptrue
scroll-epubtrue
2

...

Code Block
languagetext
if( ( `getCount $selectionArray` ) == 2 )
{
  
 vector $source1 = $selectionArray[0].Translation;
   
vector $source2 = $selectionArray[1].Translation;
   
vector $position = ( $source2 - $source1 );
 
  float $distance = `getLength $position `;



  print ( "The distance between " + 
    ( string ($selectionArray[0]) ) +

   " and " + ( string ($selectionArray[1]) ) +
   
" is " + ( string ( $distance ) ) + "mm ." );
}
else
{
   
print "Must have exactly 2 nodes selected.";
}
$text = "Default scaling";

...