MoI discussion forum
MoI discussion forum

Full Version: New Section command

Show messages:  1-18  19-38  39-49

From: Frenchy Pilou (PILOU)
13 Aug   [#39]
Seems we can't give a color to the section(s) surface(s) during the process!

(or before in giving different colors to the surfaces' volumes like X= Red, Y = Green, Z = Blue)


From: Michael Gibson
13 Aug   [#40] In reply to [#39]
Hi Pilou, in "Section plane" mode, the generated plane will get the "active style" applied to it.

Go to the scene browser styles section and right click on a style's color swatch to set it as active.

- Michael
From: Frenchy Pilou (PILOU)
13 Aug   [#41] In reply to [#40]
Yep cool trick for give a color!

But it's only one color for all the surfaces and not each separately!

Sure I can at the exit of the function but...


From: Michael Gibson
13 Aug   [#42] In reply to [#41]
Hi PIlou,

re:
> But it's only one color for all the surfaces and not each separately!

You can do it separately if you run the Section command 3 separate times and only generate one section each time.

You can also set up a keyboard shortcut that will enable just one specific plane at a time, like this:

Section UseXY=true UseXZ=false UseYZ=false

- Michael
From: Michael Gibson
13 Aug   [#43] In reply to [#41]
@Pilou, it's also possible to automatically set a specific style to be the active style in a shortcut key as well, like this:

Section oncommandstart="var style=moi.geometryDatabase.findStyle( 'Rouge' ); moi.geometryDatabase.activeStyle=style.index;" UseXY=true UseXZ=false UseYZ=false

If you set that on a shortcut key when you press it, it should set the XY checkbox to be on, XZ and YZ checkboxes off and make a style named 'Rouge' to be the active style.

- Michael
From: Frenchy Pilou (PILOU)
13 Aug   [#44] In reply to [#43]
Yep so if i good understand I must have 3 different shortcuts! :)

Something like

Section oncommandstart="var style=moi.geometryDatabase.findStyle( 'Rouge' ); moi.geometryDatabase.activeStyle=style.index;" UseXY=true UseXZ=false UseYZ=false

Section oncommandstart="var style=moi.geometryDatabase.findStyle( 'Vert' ); moi.geometryDatabase.activeStyle=style.index;" UseXZ=true UseYX=false UseYZ=false

Section oncommandstart="var style=moi.geometryDatabase.findStyle( 'Bleu' ); moi.geometryDatabase.activeStyle=style.index;" UseYZ=true UseXY=false UseXZ=false

Yep but that is just successively ! :(
If i add a true there is 2 same colors!


From: Michael Gibson
13 Aug   [#45] In reply to [#44]
Hi Pilou,

re:
> Yep so if i good understand I must have 3 different shortcuts! :)

Yes that's correct.


> If i add a true there is 2 same colors!

Sorry I don't understand this part.

- Michael
From: Frenchy Pilou (PILOU)
13 Aug   [#46] In reply to [#45]
on my video above on the last image there 2 red planes because I add a "true" condition!

I can't have the 3 different colors in the same time !
From: Michael Gibson
13 Aug   [#47] In reply to [#46]
Hi Pilou,

re:
> I can't have the 3 different colors in the same time !

Yes that's correct, this command is not designed to make 3 different colors at the same time.

Is that something that you need to do frequently?

- Michael
From: Frenchy Pilou (PILOU)
13 Aug   [#48] In reply to [#47]
No aespecially but seems to me that will be just natural that "pushing" a section will show that you are in a primary axis (red , green , blue)
From: Michael Gibson
13 Aug   [#49] In reply to [#48]
@Pilou,

re:
> No aespecially but seems to me that will be just natural that "pushing" a surface
> will show that you are in a primary axis (red , green , blue)

To me that seems like it would be distracting. seeing a big red surface would seem to me like a "danger something's wrong" signal.

- Michael

Show messages:  1-18  19-38  39-49