Print objects in console
Hello! My first post to this forum.
I am relatively new to Cheetah3D, I wish to use it mainly by scripting, and try to evaluate the workflow before investing more time in javascript.
Please, how to get "-1,-1,0" rather than "[object CallBackObject]" with the print() below?
Thanks!
======== solved ====
Hello! My first post to this forum.
I am relatively new to Cheetah3D, I wish to use it mainly by scripting, and try to evaluate the workflow before investing more time in javascript.
Please, how to get "-1,-1,0" rather than "[object CallBackObject]" with the print() below?
Code:
var verts=[new Vec3D(1,-1,0), new Vec3D(-1,-1,0), new Vec3D(-1,1,0), new Vec3D(1,1,0)];
print(verts[1])
Thanks!
======== solved ====
Code:
var test = verts[1];
print(test.x);
Last edited: