Show messages:
0-19
20-39
40-55
From: DannyT (DANTAS)
Hi Michael,
I use this often when when laying out construction curves, I'm trying to draw a bisector curve between the the two curves shown.
Is it possible to have a bisector function in V3 to produce the curve between the two shown by just picking the curves instead of trying to figure out construction lines ?
Cheers
Attachments:
bisector_eg.3dm
Image Attachments:
bisector.jpg
From: Michael Gibson
Hi Danny, is this something that you only need done between 2 lines? Or are you looking for something between any 2 curves?
I could probably cook up something for you for 2 lines right now, but for between 2 bendy curves would need some other stuff for that in v3.
- Michael
From: DannyT (DANTAS)
Mainly the two lines for now Michael, but if you can implement other related stuff for V3 that would be good too.
A script for the two lines would be great.
Cheers
From: BurrMan
I can do that pretty quick with 2 tangent arcs, but I suppose that the scene could get more complicated than that and you're just looking for an automated tool....
From: BurrMan
Just did another test and a single tangent arc, then line perp works well too!
From: Michael Gibson
Hi Danny, give the attached plugin a try.
To install it, unzip it and copy the 2 files to the \commands sub-folder inside of MoI v2's main installation folder.
Then set up a keyboard shortcut and put in BisectorLine as the command name part of the shortcut.
Then when you push that key it should give you a quick way to build that in-between line. You can either preselect the 2 input lines to use before triggering it, or if you have a blank selection you can select 2 lines after triggering it as well.
Please let me know if you have any problems with it.
- Michael
EDIT: updated to fix repeat mode bug
EDIT: removed this version as it was not generating the correct kind of line, see this other message for an updated version:
http://moi3d.com/forum/index.php?webtag=MOI&msg=3745.41
From: BurrMan
Welp...Turns out I was wrong. :o My line wasnt a bisector... Works well over here Michael.
From: DannyT (DANTAS)
Hi Burr,
> I can do that pretty quick with 2 tangent arcs
Not quick enough ;) thanks for the tips anyway, I was basically doing the same thing with lines until I got sick of it, so off to the wizard I thought.
Thanks Michael, absolutely perfect.
Cheers
~Danny~
From: BurrMan
tried to be spiffy....Back to plans.
From: DannyT (DANTAS)
Hi Michael, um try the Repeat tick box and let us know what you get ;)
Cheers
From: BurrMan
141 curves!!! :o
From: Frenchy Pilou (PILOU)
Sorry, before load the script
is that result wanted?
Image Attachments:
bisector.jpg
From: Michael Gibson
Hi Burr,
> tried to be spiffy....Back to plans.
:) I think you were going along that median-line discussion a couple of weeks ago?
- Michael
From: Michael Gibson
Hi Danny,
> Hi Michael, um try the Repeat tick box and let us know what you get ;)
Well, if 1 bisector is good, a few hundred are 100x as good, right? ;)
This is actually why the repeat tick box is supposed to be disabled for commands that involve selecting objects as their inputs, but I forgot that part.
I've updated the previous attachment, so that it should not show the repeat checkbox anymore for this command.
- Michael
From: Michael Gibson
Hi Pilou,
> is that result wanted?
Yup! And it's possible to get that result by several different methods currently, this is just a way to make it faster if you need to do it many times.
- Michael
From: BurrMan
"""""""" I think you were going along that median-line discussion a couple of weeks ago?"""""""
Moreso probably a lack of understanding of the bisector result. :o
From: Frenchy Pilou (PILOU)
ok So I will can add it to my collection ;)
http://moiscript.weebly.com/
In French but Titles' names' scripts are in English :)
From: DannyT (DANTAS)
Hi Michael,
> I've updated the previous attachment,
> so that it should not show the repeat
> checkbox anymore for this command.
What?! I was hoping for the repeat checkbox :( isn't it possible for the command to end and the curves deselected after the bisector curve is created, so another set of curves can be selected ?
-
From: Michael Gibson
Hi Danny, it's not really easy for commands that involve object selection to work with the repeat checkbox, because things are more primarily intended to work by selecting the objects that you want to work on before you run the command.
It's just so ingrained in things like basic file operations in Windows to do "Noun, verb" operations where you pick the thing you are operating on first before triggering the action that works on it...
In MoI I've also tried to accomodate people who are used to picking input objects after a command has been run as well (which is how several older CAD programs are structured), but that post-pick support is kind of a supplementary thing and not really the main focus.
When you work with pre-selection, sometimes you want to do things like do several operations in a row on the same selection, and if every operation removed the selection from the objects that would not be possible...
So when objects are pre-selected doing an immediate repeat does not work very well because it ends up too literally an exact repeat with the same input objects.
But that's one reason why you can right-click to repeat the last command as a separate thing from the repeat checkbox. The way things are set up now, the repeat checkbox is only for drawing commands where you pick points to define objects, and not for commands that involve selection of input objects.
Of course, it could be possible to make a customized version of this particular command that removes selection at the end, it would just behave pretty differently than how other commands are normally structured.
I've attached a version that does this, I think it's more like what you want and it allows for the repeat checkbox to work, but instead this version does not allow the lines to be pre-picked at all, it clears out the selection at the start of the command and clears it at the end of the command, so it behaves differently than the regular way that other MoI commands work.
Maybe I should have something like a "post pick" type global option that you could enable which would do stuff like clear selection like that when running all commands.
- Michael
Attachments:
BisectorLine.js
From: Frenchy Pilou (PILOU)
< Maybe I should have something like a "post pick" type global option that you could enable which would do stuff like clear selection like that when running all commands.
or by commands? so a board with some cases to enable/disable?
Show messages:
0-19
20-39
40-55