Construction line script
 1-8  9-28  29-48

Previous
Next
 From:  Alomphega
1029.29 
Hello,

I am a bit confused with this Construction line script installation/utilization.

First I have tried the Petr's MoI page "ConstructionLine" scripts as shortcuts and all was fine.

So happy I was ! :-)

Then I have erased the 3 shortcuts created on Petr's indications and I have installed the Michael's ConstructionLine3 script found in this discussion.
After installation as explained in the readme.txt file and benfarmer's recommended modifications for the Beta3
and after the re-start of MoI I do not see anything like icons or something else to use the construction lines script...

Where am I wrong ?
Since I do not find anything to use MoI scripts, is anywhere a manual to understand how to well install and use MoI scripts ? (say not to program them, just on a boeotian-new user point of view...)

Thanks for your time,
Guy

_____________________________________________________________________________________
always working on few funny projects : www.nauticaerium.com ; www.conceptarum.com and so on...

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
1029.30 In reply to 1029.29 
Hi Guy, some of the information about modifying the UI to add buttons to it is old now and only applies to MoI version 2 and not version 3 anymore.

So you should avoid doing some parts of the instructions - skip anything that talks about adding buttons or modifying files inside the \ui subfolder, that adds a lot of complexity to getting things set up so I would not recommend trying to do that part right now unless you are familiar with editing HTML.

Instead of trying to add a button the more usual way of calling a plug-in for now is to set up a shortcut key for the plug-in and run it by pushing whatever key you assign to the shortcut.

In the future I do want to make it easier to set up some UI for plug-ins, something like a special plug-in menu or something like that.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Alomphega
1029.31 In reply to 1029.30 
Hi Michael,

> So you should avoid doing some parts of the instructions [...] unless you are familiar with editing HTML.

Well, in fact I am a bit familiar with editing and text-editing the HTML code and I can do that without hurt the code, but of course I prefer to avoid it if I can, especially when I do not know the logical inside.

> Instead of trying to add a button the more usual way of calling a plug-in for now is to set up a shortcut key for the plug-in and run it by pushing whatever key you assign to the shortcut.

By "calling a plug-in" and "to set up a shortcut key for the plug-in" do you mean than, for instance with your "ConstructionLin3.zip" script, we just have to put both the .htm and .js in the MoI "./commands" directory and then "ConstructionLine.js" and "ConstructionLine.htm" are seen like plug-in by MoI and can just to be called by their root name - as "ConstructionLine" - just written as this in the "Command" section of one new shortcut created in the Shortcuts key section of the options ?

Or do we have to do anything else ?

In fact of course I have tried what I supposed above, and I found that if I choose "L" as shortcut key for instance, when I press "L" a panel "Drag to create construction lines" appears with "clear", "done" and "cancel" buttons which are quite simple to understand, but maybe I have missed something ?

> In the future I do want to make it easier to set up some UI for plug-ins, something like a special plug-in menu or something like that.

Sure it will be very easier, but for now it miss just a written method to deal with that because I have searched and found nothing nowhere... Maybe there is something but sure it is too hard to find for me.

So I suggest you to put something like that after "Scripting" title on the "Resources" page of the MoI website just to avoid many questions :
--8<--
To install a "ScriptName" script just unzip the zipped script "ScriptName.htm" and "ScriptName.js" files, put them in the "commands" directory of the MoI installation the re-start MoI.
To run this "ScriptName" script create a new shortcut with a new key of your choice in MoI options with "ScriptName" written in the "Command" line. Using this shortcut will run the script.
--8<--

Please if I am wrong tell me what I have missed !

Cordially,
Guy

_____________________________________________________________________________________
always working on few funny projects : www.nauticaerium.com ; www.conceptarum.com and so on...

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
1029.32 In reply to 1029.31 
Hi Guy,

quote:
By "calling a plug-in" and "to set up a shortcut key for the plug-in" do you mean than, for instance with your "ConstructionLin3.zip" script, we just have to put both the .htm and .js in the MoI "./commands" directory and then "ConstructionLine.js" and "ConstructionLine.htm" are seen like plug-in by MoI and can just to be called by their root name - as "ConstructionLine" - just written as this in the "Command" section of one new shortcut created in the Shortcuts key section of the options ?
Yup, that's correct!

quote:
Or do we have to do anything else ?
Nope!

quote:
In fact of course I have tried what I supposed above, and I found that if I choose "L" as shortcut key for instance, when I press "L" a panel "Drag to create construction lines" appears with "clear", "done" and "cancel" buttons which are quite simple to understand, but maybe I have missed something ?
Nope, you haven't missed anything - when you see that it means you have successfully installed and then launched the plug-in, so you're all up and running and all set.


quote:
So I suggest you to put something like that after "Scripting" title on the "Resources" page of the MoI website just to avoid many questions :
Usually I include those instructions in every forum post where I am introducing a new plug-in. Every once in a while when I'm talking to someone who has already done it a bunch before I may forget to include the instructions, sorry about that!

I definitely want to improve the entire plug-in system to make it easier to browse a central repository of plugins and just push a button or something to install one and also have some list of them displayed in the UI.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Alomphega
1029.33 In reply to 1029.32 
Ok, thanks Michael :-)

BTW :
could you give us a short explanations on how to use this ConstructionLine script v3 ?
Is it the last (best) version of your Construction Line script ?
Is this version do all what the previous did ?

Cordially,
Guy

_____________________________________________________________________________________
always working on few funny projects : www.nauticaerium.com ; www.conceptarum.com and so on...

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
1029.34 In reply to 1029.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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
1029.35 In reply to 1029.34 
So where is this last version in definitive?
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
1029.36 In reply to 1029.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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
1029.37 In reply to 1029.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 :)

EDITED: 4 Jul 2012 by PILOU

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Alomphega
1029.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

_____________________________________________________________________________________
always working on few funny projects : www.nauticaerium.com ; www.conceptarum.com and so on...

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BEAR17
1029.39 
French version of "Construction line script" is done ! :)


  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
1029.40 In reply to 1029.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! :)

EDITED: 26 Feb 2016 by PILOU

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BEAR17
1029.41 In reply to 1029.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! )

EDITED: 26 Feb 2016 by BEAR17

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
1029.42 In reply to 1029.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!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
1029.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!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BEAR17
1029.44 In reply to 1029.43 
I can help you Pilou , if you want.

Bear
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
1029.45 In reply to 1029.44 
ALL is done! ;)
---
Pilou
Is beautiful that please without concept!
My Gallery
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Dejan (XDEXX)
1029.46 

Is is somehow possible to change colour of construction lines?

Cheers,
Dejan

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
1029.47 In reply to 1029.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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Dejan (XDEXX)
1029.48 In reply to 1029.47 
Thank you Michael! Your support here is absolutely amazing :-)

Cheers,
Dejan
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages:  1-8  9-28  29-48