Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am tweaking a JS script and need to access an array, but it keeps failing.
Here is a code snippet:
var points = new Array(50);
points[prf] = adsk.core.ObjectCollection.create();
....
var point = adsk.core.Point3D.create(data[i][0], data[i][1], data[i][2]);
points[prf].add(point);
...
Now I want to get the value of Z from a point in that array.
Ive tried
var z=points[1].z;
z=points[i][2];
then assuming its a method:
z=points[i].getData(x,y,z);
Nothing seems to work for me.
Solved! Go to Solution.