Auto spline extrude?
All  1  2-6

Previous
Next
 From:  Michael Gibson
2762.2 In reply to 2762.1 
Hi Rob - it can be kind of bad from a UI point of view to try and combine too many different functions into a single tool...

That can generally tend to make the tools become heavier and heavier and trending to become more bloated.

Especially in this case where I guess you're talking about adding an option in to a wide variety of tools - for example there are quite a few different ways to draw a curve currently:

Line
Polyline
Freeform control points
Freeform through points
Freeform sketch
Rectangle from corner
Rectangle from center
Rectangle from 3 points
Polygon from Center
Polygon from Edge
Polygon star
Circle from center
Circle diameter
Circle from 3 points
Circle tangent
Arc from center
Arc continue
Arc from 3 points
Arc tangent
Ellipse from center
Ellipse diameter
Ellipse from corners


So that's like 22 different commands that draw curves - would you be talking about adding in an extrusion function to every single one of these? Then Extrude itself has quite a few options within it: Pick a point for the height or enter distance, Cap ends, Both sides, Set dir, Set path...

If all of that were combined into each of these commands it would basically be greatly increasing the complexity of each of these commands.


MoI's current design philosophy is more oriented towards keeping something like that which may apply to a wide combination of commands as a separate function rather than trying to bake it in to each one.


One thing that may be useful to you though is to set up a keyboard shortcut that will select the last object that was drawn and then launch extrude. If you place the following as the Command part of a keyboard shortcut it will do that:

script:var gd = moi.geometryDatabase; gd.deselectAll(); var a = moi.command.lastCommandRevisionStart; var b = moi.command.lastCommandRevisionEnd; var objects = gd.getObjects(); for ( var i = 0; i < objects.length; ++i ) { var obj = objects.item(i); if ( obj.databaseRevision> a && obj.databaseRevision <= b ) obj.selected = true; } moi.command.execCommand( 'Extrude' );


So with that in place, immediately after drawing any curve you can hit that key and it will automatically select that curve and extrude it.

- 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:  rhodesy
2762.3 
Brilliant that will do nicely! thanks Michael loving mois flexibility
  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:  rhodesy
2762.4 
Sorry my last reply was so brief, just replied from my phone. I've been using this shortcut loads today at work - just the job and the hot key is definately the best way to go. I think this is going to speed things up quite a lot for me so thanks again.

Have you any plans to create an official page of scripts on the moi website? Also will future versions of moi ship with the plugin gallery button feature that can easily be added to in a graphical way?

Cheers
Rob
  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
2762.5 In reply to 2762.4 
Hi Rob, I'm glad that quick extrude shortcut has been useful!


> Have you any plans to create an official page of
> scripts on the moi website?

Currently Petr has collected them on his page here:
http://kyticka.webzdarma.cz/3d/moi/

Probably at some point it would be good to make a home on the moi3d.com wiki for these though. Or maybe not, because maybe a better way would be to have a kind of online repository of them that you could browse with some kind of UI inside of MoI.


> Also will future versions of moi ship with the plugin gallery
> button feature that can easily be added to in a graphical way?

Yup, at some point I want to have a "plug-ins" menu that will pop up a list of plugins/scripts that you have installed. It will take a fair amount of work to do a nice version of this, so I'm not quite sure exactly when that will happen.

- 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:  Brian (BWTR)
2762.6 In reply to 2762.5 
Hhhhmmmnnnnn!

Brian
  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: All  1  2-6