I have a script similar to this as-well. You should add another layer of 'create' to it by having it create new boxes, cylinders, spheres, etc. when nothing is selected. Base the type of object being created on ctrl, alt, shift keybindings.
Also most of your code for the editable poly part works when you have show end result toggled on. Any instance where you're using the '$' is where it fails because $ is only looking at what type of object the modifier stack results to. So a shell modifier is resulting in an editable mesh. Take a look at you're code and fix the areas where your using the '$' by itself so it resolves to what you want it to in the stack.
You do a better job with the edit poly modifier portion. I believe all of its code works with show end result turned on.
Very smart script indeed, condition-aware command is great, speedup a lot and feeling natural even I didn't use this kind of combined command AIO before. Thanks, man.
Oddly it looks like you cant bind the bridge function by default.
You can only hotkey a macroscript. Which is simply a script with a macroscript header. Pedro 's script is already a macroscript as you can see it has :
So execute it once, by drag and drop on viewport, or script>run script. Now the macroscript is duplicated in some max internal folder and will be run from it.
Go to customize>customize user interface. In category, look for "Pedro scripts". Select "Super Smart Create" and assign a hotkey (and save)
I actually wrote a script that did almost the exact same thing back around 2011-2012, so was surprised when I first saw this thread. Since it looks like the threads links are dead, if no one still has Pedros script, I can dig up the one I wrote for you guys to use instead.
Replies
Also most of your code for the editable poly part works when you have show end result toggled on. Any instance where you're using the '$' is where it fails because $ is only looking at what type of object the modifier stack results to. So a shell modifier is resulting in an editable mesh. Take a look at you're code and fix the areas where your using the '$' by itself so it resolves to what you want it to in the stack.
You do a better job with the edit poly modifier portion. I believe all of its code works with show end result turned on.
This was easier than I thought. I just changed $ for curObj and it fixed it
Working on some game car models, and often need to clean loops flow, is there some solution for it?
Located here. (sorry for small pic, got it online)
Also on 2012? what a trooper
just add it as an additional classOf case
Basically all I want is to set a hotkey for bridging (edges)
: (
You can only hotkey a macroscript. Which is simply a script with a macroscript header.
Pedro 's script is already a macroscript as you can see it has :
So execute it once, by drag and drop on viewport, or script>run script.
Now the macroscript is duplicated in some max internal folder and will be run from it.
Go to customize>customize user interface.
In category, look for "Pedro scripts".
Select "Super Smart Create" and assign a hotkey (and save)
Since it looks like the threads links are dead, if no one still has Pedros script, I can dig up the one I wrote for you guys to use instead.
Happy hunting
http://www.scriptspot.com/forums/3ds-max/general-scripting/help-me-get-this-script-work-in-edit-poly-modifier
(new link should work)