MoI discussion forum
MoI discussion forum

Full Version: Construction line script

Show messages:  1-13  14-33  34-49

From: Michael Gibson
3 Jul 2012   [#34] In reply to [#33]
Hi Guy,

> BTW :
> could you give us a short explanations on how to use this ConstructionLine script v3 ?

While the ConstructionLine command is running you can create construction lines inside of a viewport by the usual method of pressing and holding the mouse down and dragging the mouse with the button still held down, but the difference from regular construction lines is that these ones will persist after that command exits.

Note though that if you just want to use a construction line as a helper during drawing you do not need to use this script to add one, you can create a construction line inside of any drawing command or anytime that MoI is asking you to pick a point input. To place a point you do a mouse click - if instead of clicking you hold down the mouse button and drag it away you will create a construction line at that time, the only thing the special script does is make lines that stick around for longer than the current command, normally construction lines are cleared when the current command exits.


> Is it the last (best) version of your Construction Line script ?

Yup, I think it is the latest - it's actually not my script it was created by someone else.


> Is this version do all what the previous did ?

I believe so, yes.

- Michael
From: Frenchy Pilou (PILOU)
3 Jul 2012   [#35] In reply to [#34]
So where is this last version in definitive?
From: Michael Gibson
3 Jul 2012   [#36] In reply to [#35]
Hi Pilou,

> So where is this last version in definitive?

I guess the last one that was attached in this thread which looks like here:
http://moi3d.com/forum/index.php?webtag=MOI&msg=1029.25

- Michael
From: Frenchy Pilou (PILOU)
4 Jul 2012   [#37] In reply to [#36]
Hello Guy
I have made a tuto in French for input an icon inside UI ;)
http://moiscript.weebly.com/ajouter-une-icocircne.html

Tout reste valable et pour l'installation de la nouvelle "CLine"

voici la ligne qu'il faut mettre entre les 2 td entre crochets en attente ;)

<moi:CommandButton icon="icons/CLIcon.png" command="ConstructionLine"><moi:Text textid="CLine"></moi:CommandButton>

et non le texte d'aide fourni (ça ne marche pas pour moi :)

A quoi il faut ajoute pour la version Française dans le fichier FrenchStrings.txt
CLine=Ligne par exemple

On obtient à la fin, la dernière icône en bas à droite :) les couleurs de l'interface sont juste inversées avec un programme 2D pour l'image jointe!
j'attends la V3 pour faire tout cela automatiquement :)


From: Alomphega
5 Jul 2012   [#38]
Thank you very much Michael and Pilou,

@Pilou : yes and thanks for your efforts, but I prefer the simplicity just using a letter as a shortkey and the name of the script as the commande line without anything else more.
For now it seems to be the easier and quickest way for me.

Best Regards,
Guy
From: BEAR17
26 Feb 2016   [#39]
French version of "Construction line script" is done ! :)

Attachments:
ConstructionLine.htm
ConstructionLine.js

Image Attachments:
Capture.PNG 


From: Frenchy Pilou (PILOU)
26 Feb 2016   [#40] In reply to [#39]
I have a little memory hole! :)
What is this Construction Line ?

Does it different than the Helper Line ?


Edit : Ok My memory is coming back! :)

@ Bear : before translate something take a look on my site if maybe I have yet made this! :)

I am now translating Section Divers & Scripts so your above one is cool for me! :)
From: BEAR17
26 Feb 2016   [#41] In reply to [#40]
Maybe it is not different from "Helper Line". I don't know.

I found this script by clicking here :



Edit : Before translating , I took a look at your website to see if maybe you had already done that! :)
(There is a lot of information on your site! )
From: Frenchy Pilou (PILOU)
26 Feb 2016   [#42] In reply to [#41]
Section Divers Done! :)
http://moiscript.weebly.com/liste-scripts-commandes.html

J'attaque la section Scripts! :)

In fact Constructions Line is exactly like Helpers Lines except the fact they stay living !
And die when you want!
From: Frenchy Pilou (PILOU)
26 Feb 2016   [#43]
Section Scripts Done!

Big Section Maths for tomorrow, but many commands are yet translated on my site
so just move the files for update this crazzy Icons' list on the Task bar! :)

Bravo to Marco!
From: BEAR17
27 Feb 2016   [#44] In reply to [#43]
I can help you Pilou , if you want.

Bear
From: Frenchy Pilou (PILOU)
27 Feb 2016   [#45] In reply to [#44]
ALL is done! ;)
From: Dejan (XDEXX)
25 Jun 2017   [#46]

Is is somehow possible to change colour of construction lines?

Cheers,
Dejan


From: Michael Gibson
25 Jun 2017   [#47] In reply to [#46]
Hi Dejan,

> Is is somehow possible to change colour of construction lines?

Yes, you can set the color in moi.ini, go to Options > General > "Edit .ini file" button, and then inside moi.ini find the [Drawing Aids] section and there's an entry in there for "StraightSnapLineColor" like this:

[Drawing Aids]
<....>
StraightSnapLineColor=103,0,0,0


That takes 4 comma-separated values which are for Opacity,Red,Green,Blue - the values can range from 0 to 255.

That controls the color for both construction lines as well as the straight snap lines that show when straight snap is engaged.

- Michael
From: Dejan (XDEXX)
26 Jun 2017   [#48] In reply to [#47]
Thank you Michael! Your support here is absolutely amazing :-)

Cheers,
Dejan
From: Cuboctahedron
20 Dec 2025   [#49]
Hello! Responding to a very old thread, as I'm trying to get this working again in the current beta. I've found that some bits of the UI language have changed a little, but that was all easy to fix up. You can find an updated version at https://dymaxion.org/tmp/ConstructionLine.zip

Show messages:  1-13  14-33  34-49