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 / creating empty array
  RSS 2.0 ATOM  

creating empty array
Rate this thread
 
30137
 
Permlink of this thread  
avatar
  • Total Posts: 4
  • Joined: 21 October 2008 05:44 AM

Hi,

I’m trying to create an empty array which I will get populated later on in my script but having some problems with the syntax.

My current attempt looks like this:

var arr = new array() ;
var vbArr = new VBArray( arr );

But xsi cries when I execute this, the docs dont seem to show any examples of creating an empty array.
Can anyone be kind enough to write an example of how you create an empty array.

Thanks in advance

Dan



Replies: 0
avatar
  • grahamef
  • Posted: 20 November 2008 05:25 AM

var my_array = new Array();
var my_array = new Array([I]size[/I]);
var my_array = new Array([I]elem1, elem2, elem3,[/I] ... );

This has more to do with pure JScript than XSI. A good reference for questions like this is the Microsoft documentation:

http://www.microsoft.com/downloa...4099D7BBB9&displaylang=en



Replies: 0
avatar

Thanks for that,



Replies: 0
avatar
  • ThE_JacO
  • Posted: 23 November 2008 01:41 AM

posted in the wrong forum.
Moving this for you, but next time please take care of posting in the right subforum :)



Replies: 0