PDA

View Full Version : maxscript help


Bluemilk
06-21-2002, 08:43 AM
ok i need some help,
I have created a script, an ms file. How do i make this accessible in my right click menu.??
in the mannual it sais about adding more code etc but i just get confused.
Basically all i have done is turned on the macro recorder and copied the commands for the nurmsmooth toggle then show edges, so when im polymodelling i can just hit one command and nurmsmooth will turn off and edges will come on. It would be great if it was a toggle so when i have edges on in low polymode i can hit my new toggle and edges will turn off and nurmsmooth will come on.

I hope this makes sense as its early in the morning
if anyone can help i would be greatly glad, im fed up of hitting F4 and N (my keyboard nurmsmooth tohggle)
Paul

Bluemilk
06-21-2002, 11:43 AM
http://207.164.141.121:82/images/mangaman.gif



help me please?????
i will add an image in the hope of gettin help on this question, itsa manga style character im working on, kinda like fist of the north star.

Bluemilk
06-21-2002, 04:43 PM
ok, ive been told that i need to mmake a macroscript, all good but how do i turn my script into a macro script, this is gettin more confusing.

Help??????

LFShade
06-21-2002, 05:06 PM
There are a couple ways to do this. The easiest is to open up your script, copy and paste it to the MAXScript listener, and then select it all and drag it to a toolbar (I can't remember exactly, but it may not be necessary to paste it into the listener; you might just be able to drag/drop it directly from the script editor - give it a try). The resulting button is your new macroScript. At that point, though, the macro doesn't have a useful name - it'll just be assigned some generic name that will be difficult to track down in the UI editor. To fix this, right-click on the new button and click on "Edit MacroScript". From there you can change the name of the macro, and edit the category to something more appropriate. Evaluate the script, save and close (you can also delete the button at this point if you wish).

Now your macro is available in the Customize User Interface dialog under the category you typed into the macro, ready to be assigned keyboard shortcuts, put on buttons and into quads and menus!

DonMeck
06-23-2002, 05:23 PM
you can go the way like bluemilk said.
If you haven't got it go than post your code here .. we'll transform it for ya.

Bluemilk
06-24-2002, 09:54 AM
thanks alot. ill try this now. I would so love to learn maxscript but my brain stops me from learning any sort of code, i need a a pop up maxscript learning book!

cheers again

CGTalk Moderation
01-13-2006, 09:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.