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 / Why does CreateCurve script work in VB but not in Jscript?
  RSS 2.0 ATOM  

Why does CreateCurve script work in VB but not in Jscript?
Rate this thread
 
60445
 
Permlink of this thread  
avatar
  • aakal
  • Posted: 28 September 2011 06:57 AM
  • Total Posts: 1
  • Joined: 28 September 2011 06:37 AM

VBScript

Dim oCurve
CreateCurve 1
0"(-2,0,0),(-2,0,-2),(2,0,-2),(2,0,0)"FALSEoCurve
SelectObj oCurve
, , True

The script selects the newly created curve.

JScript

var oCurve;
CreateCurve(10"(-2,0,0),(-2,0,-2),(2,0,-2),(2,0,0)"falseoCurve);
SelectObj(oCurvenulltrue);

The script does not select the newly created curve. Why???

Thanks in advance



Replies: 0
avatar
  • mantom
  • Posted: 29 September 2011 12:45 PM

Read the SDK docs on the CreateCurve() command.



Replies: 0