MoI discussion forum
MoI discussion forum

Full Version: Save custom CPlane(s)

Show messages: All  1-9  10-14

From: Michael Gibson
7 Nov 2022   [#10] In reply to [#9]
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
From: Frenchy Pilou (PILOU)
16 Sep   [#11]
A very simple way for make a library of CPlane (s) :)

Draw a little surface ( polys...) Export it (single or several) with their orientation !

Just Import them when necessary and draw the Cplane from it! :)

So you can have several CPlane(s) in the same project!
From: Mindset (IGNITER)
17 Sep   [#12] In reply to [#11]
Pretty simple indeed.
Bravissimo, Frenchy Pilouâť—
From: Frenchy Pilou (PILOU)
17 Sep   [#13] In reply to [#12]
CPlane Manager by Samardac can add a little help but...

https://moiscript.weebly.com/truc-astuces-2.html
From: Mindset (IGNITER)
17 Sep   [#14] In reply to [#13]
Merci Beaucoup

Show messages: All  1-9  10-14