Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Softimage® / XSI SDK / curve lenght
  RSS 2.0 ATOM  

curve lenght
Rate this thread
 
30169
 
Permlink of this thread  
avatar
  • Total Posts: 3
  • Joined: 14 November 2008 05:07 AM

Hello,

Here’s my question : What’s the command line which return the lenght of a selected curve?

I know that we can access the info with “shift"+"enter", but I would like to script that in order to include the operation in a more complex script.

Thanks for your help.



Replies: 0
avatar

Look for ‘GetCurveLength’ command in the manual.

logmessage (GetCurveLength(Selection(0))(0));

edit:
or

logmessage(Selection(0).ActivePrimitive.Geometry.Curves(0).Length);


Replies: 0
avatar

Thank you :)

Julien



Replies: 0