Hi Mindset,
re:
> I tried to store data from "moi.view.getCPlane();" into the Jason file, but I don't know its properties
The return from moi.view.getCPlane() is a coordinate frame object, it has properties for: .origin, .xaxis, .yaxis, and .zaxis , and each of those points and vectors have properties for .x .y and .z .
When you want to make a coordinate frame object, you call moi.vectorMath.createFrame() and on the coordinate frame you can set it using the .set() method which takes 9 values: frame.set( originx, originy, originz, xaxisx, xaxisy, xaxisz, yaxisx, yaxisy, yaxisz ); - the z axis is automatically calculated from the x and y axes and isn't set by itself.
- Michael
|