Show messages:
1-8
…
329-348
349-368
369-388
389-408
409-428
429-448
449-468
…
629-639
From: Michael Gibson
Hi Scott,
re:
> (sidebar question... can the default number of sides by set in the .ini file?)
The default comes from this line in the Polygon.htm file inside the commands install folder:
<td><moi:UnsignedIntegerInput id="numsidesinput"
default="5"/></td>
You could change that to default="8" for example.
Another thing you can do is set up a shortcut key which will set it to a particular value. For
that you would put in this for the shortcut key:
Polygon numsidesinput=9
re:
> For example, if I'm using the current implementation correctly(?) for a CENTER drawn polygon,
> the TAB button cycles between SIDES and CIRCUMSCRIBED. To enter the desired CIRCUMSCRIBED
> dimension, I have to move the cursor to the XYZ data entry box to enter the desired dimension.
Yes you need to set distance constraint to control it currently, by entering the distance value in
the XYZ (or "d") input control like you describe.
The main reason why the polygon command doesn't have a radius input field is that it's not fully
defined by a radius value alone, it still needs a point to be placed to control the orientation of
the polygon.
I guess it could be possible to have a radius/diameter field there which would do the same thing
as setting distance constraint. One thing that's potentially problematic with that though would
be that there would effectively be 2 different spots where you would be setting distance
constraint and what should I do if you enter in a different value in one control vs another.
Another thing I've been meaning to set up for some time is a shortcut that would put focus in the
XYZ control always and not in the command option fields like Tab does. Like maybe Ctrl+Tab.
- Michael
From: BurrMan
Hi Michael,
So with regards to modifying the polygon.htm file....
MoI's structure is that the htm and js files have the same name to address each other.
I just wanted to be sure. Or possibky suggest a pointer in an htm file to a js file.
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
Not more js files just for the name match.
But really, its not overly intrusive. Just wanted to ask about if it worked that way now, and i didn't know it
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
Show messages:
1-8
…
329-348
349-368
369-388
389-408
409-428
429-448
449-468
…
629-639