[Closed] creating a script like this
hi there. is there anyway to write a script(that i would use as a button) that automaticly creates a box with certain number of segments, delete one of the halves, then add a simetry+shell and finnaly a turbosmooth modifier on top? i’ve never got into the maxscript scene so i dunno if what i want to create is difficult or not, so i came here looking for directions. hope u guys can help me, since i have to do those all the time and it becomes a bit enfastiating…
thanx in advance.
Fábio,
You can record your actions while you do these. It works for specific situations like this.
Light
hey man thanx for the tip. was really useful. i’ve recorded the script and it works fairly well. the only issue is that it allways asks for more scripts to open and each time i open it it creates me another “group of my recorded actions”. even so if i press cancel just 1 time it just creates one thing for me which is what i wanted
thanx
now i wonder, how can i create a button for this script(a simple one that when i click just runs the script). i’ve been looking in the manual in the interface section, but i’m kinda lost o_O
For a quick button, you can just select all your code and drag it to the toolbar. It creates a macro button automatically.
Alternatively you can wrap your code with this:
macroScript macroName category:"categoryName" tooltip:"tooltipText" buttonText:"buttonName" icon:#("iconFileName", iconNumber)
(
-- Your code here
)
You can exclude icon, tooltip, buttonText if you don’t want to specifiy these.
Light