Show messages:
1-10
…
331-350
351-370
371-390
391-410
411-430
431-450
451-470
…
631-639
From: Michael Gibson
Hi Burr, so the way that commands in MoI work is when you enter in a command name to run, MoI will look in the commands folders (both install and appdata and any additional ones listed in moi.ini) for a .js script file with that name.
There can optionally be an .htm file with the same name as well. If there is then it will start up loading the .htm file into the command options area and let that finish loading first before loading and executing the .js file's script code.
re:
> Not more js files just for the name match.
It won't work like that because the .js file is the main thing associated with a command, it's the .htm file that is optional. If you have a command that does something and exits without showing any UI then only the .js file is needed.
re:
> So why i ask, is "i" would make a polygon3-polygon5 and polygon8 htm file etc. As many as i like, though they all only really need polygon.js
Instead of doing that you could give a command line parameter and have the script pay attention to that to parameterize it.
There is also a mechanism where if you give a command line parameter using the id values of one of the controls in the .htm file it will set the control to that value. So for example instead of having polygon3.htm, polygon5.htm, polygon8.htm you could do:
Polygon numsidesinput=3
Polygon numsidesinput=5
Polygon numsidesinput=8
- Michael
From: BurrMan
"Why that's IMPOSSIBLE"
No no no. "I was inverted"!!!
Thanks Ice!
From: Michael Gibson
:) It's kind of crazy there's going to be a new movie after so many years.
- Michael
From: BurrMan
It will have been 11 years since i have been to one. Gonna take my son, who is 16 now!!! Can't wait!
From: scott
Hi Michael
Thank you for the solution to my sidebar question.
After reading your explanation re my request for a polygon 'dimension' field, I did find a workaround solution that streamlines my workflow to some extent. I discovered that after selecting the desired polygon shape, I can enter the desired polygon dimension (radius) in the 'd' field as my first entry. This 'd' value then remains active until I finalize the polygon orientation. So with this workflow I'm able to 'preset' the polygon radius which works fine for my purposes.
Would adding a redundant 'd' field in the polygon settings section (under SIDES?) possibly make this workflow simpler without causing the conflicts you mentioned earlier? Or would a redundant 'd' field be potentially confusing/inconsistent with the MoI UI?
Again, not a big issue for me and especially given the workaround I mentioned above. Just highlighting in case you thought this one might be a possible MoI workflow improvement.
Cheers
Scott
From: Michael Gibson
Hi Scott,
re:
> Would adding a redundant 'd' field in the polygon settings section (under SIDES?) possibly
> make this workflow simpler without causing the conflicts you mentioned earlier? Or would
> a redundant 'd' field be potentially confusing/inconsistent with the MoI UI?
Well the problem is I'm not sure about the answers to these questions so that makes me
hesitate.
One thing that I have done though is I've made Ctrl+Tab work to always put keyboard focus into
the XYZ input control and not into the command specific options area like plain Tab does.
So you'll be able to use Ctrl+Tab and then type a number into the XYZ input to set distance
constraint without any clicks needed.
- Michael
From: wayne hill (WAYNEHILL5202)
Hi Michael,
Would it be possible to add a description column to the Shortcut Keys for clarity? Longer descriptions can be used.
Thank you,
Wayne
Image Attachments:
Shortcut Keys Description.png
From: Michael Gibson
Hi Wayne,
re:
> Would it be possible to add a description column to the Shortcut Keys for clarity? Longer descriptions can be used.
At some point I would like to have it set up so that you only see a description like that where it comes from some kind of script library. But I don't know when that will happen.
Probably the next area of work for keyboard shortcuts will be to do multi key sequences.
- Michael
From: pafurijaz
"Probably the next area of work for keyboard shortcuts will be to do multi key sequences."
What you mean?
Maybe the possibility to crate shortcuts commands like in Autocad or Rhinoceros?
e.g.
OF --> space bar = offset
BEV --> space bar = Bevel
BOO --> space bar = boolean
BOU --> space bar = boolean union
BOD --> space bar = boolean difference
In Autocad you can use space-bar or enter key to execute the command
I hope you can add that type of shortcuts commands.
From: Frenchy Pilou (PILOU)
BEV --> space bar = Bevel
BOO --> space bar = boolean
How is made the difference when you press the Space Bar ?
or you write first BEV then Press the Space Bar ?
or you Press the Space Bar then write BEV ?
or...
From: Michael Gibson
Hi pafurijaz,
re:
> Maybe the possibility to crate shortcuts commands like in Autocad or Rhinoceros?
> e.g.
>
> OF --> space bar = offset
> BEV --> space bar = Bevel
> BOO --> space bar = boolean
> BOU --> space bar = boolean union
> BOD --> space bar = boolean difference
The method that I was referring to was about using multiple keys in sequence without needing to push Enter or Space, like:
BD = Boolean difference
BU = Boolean union
The way you're talking about isn't so much a keyboard shortcut, it's a "command alias". You can make those
right now in MoI if you want, in moi.ini set:
[UI]
CommandLineTypeTextEntry=y
TreatSpaceAsEnter=y
The first one will make your keystrokes go into the XYZ input without needing to push Tab first and the second one
makes the space work the same as Enter.
Then create a script file of your alias name like if you want OF + space bar = offset to work, make a file named
of.js inside the MoI appdata commands folder and put this inside it:
moi.command.execCommand( 'offset' );
With that in place then you can type of + space bar to run the offset command just as you are describing.
- Michael
From: pafurijaz
OK Micheal, thanks, I've already done a command with moi like what you suggested, but there is a way to make only one file with these alias without making many separated files?
Greetings
From: Michael Gibson
Hi pafurijaz,
> OK Micheal, thanks, I've already done a command with moi like what you suggested,
> but there is a way to make only one file with these alias without making many separated files?
No currently you would need to make a separate file for each alias.
- Michael
From: Zooen
Hi,
I'm glad to see that my request is going through! (shortcuts with two letters)
http://moi3d.com/forum/index.php?webtag=MOI&msg=10114.81
-Zooen
From: pafurijaz
Hi Micheal, for now I think is also great the option to have the possibility to use two consecutive keys, this can give us a lot of possibility.
Greetings
From: Psygorn (DRILLBIT)
Hi Michael,
I hope your are doing well :-)
I've got a quick question for you, is there a way to have filled 2D shapes as a PDF when one saves as PDF? I mean I want to have filled 2D shapes on my PDF file and not just outlines.
Or Moi 3D already has this ability and I am not aware of?
Best,
Psygorn
From: Michael Gibson
Hi Psygorn, some of the parts of dimensions like arrowheads and text will be filled shapes in the exported PDF file but there isn't currently a way set up for a regular drawn curve to be filled. If you make a surface out of a closed curve, it will have a background image underneath though.
- Michael
From: Psygorn (DRILLBIT)
Hi Michael,
Can I make a wish for such ability :-) ?
Best,
Psygorn
From: Michael Gibson
Hi Psygorn,
re:
> Can I make a wish for such ability :-) ?
Certainly, but it probably isn't going to happen in the near time frame.
- Michael
From: Tgoy (TGOY99)
I need a simple 2D kinematic simulator to determine the interference of a moving parts to be machined from aluminum. Moi had a tutorial, a simulation of car following a path that seems more complex than a 2D simulator.
Here is a link, similar to what I have in mind:
https://oluchukwu96.github.io/Kinematic-Simulator/. This is not meant to be plagerized.
Tgoy99
Show messages:
1-10
…
331-350
351-370
371-390
391-410
411-430
431-450
451-470
…
631-639