Okay, so when I worked in maya I would make myself little macro type mel scripts all the time for operations I found I needed to repeat often (ie. scale -1 on one axis, freeze transforms, invert normals).
I would do this by turning on the 'echo all commands' option and watching what was output, then changing this until it did what I needed (and often wrapping it in a "for i in `ls -sl`"). Max's version of echo all doesn't seem to echo much at all.
I want to take my selection (at object level), assign a certain material id, uvw map with a box at 100,100,100 dimensions, then collapse the stack.
Teach a man to fish, please.
Replies
I learned how to do this from the CGSociety "Share your Max Secrets" thread http://forums.cgsociety.org/showthread.php?f=6&t=160223 But I forget which of the 40 some pages it is on.[FONT="]
[/FONT]
noticed this little thing at the lower left corner of max?
it is the maxscript listener but in a compact mode, for the real deal
press [F11] or alternativly find it here:
and this big version appears:
the red part shows the recordings (if enabled in the MacroRecorder menu) and the lower white part traces results or lets you input code and evaluate it.
my own usual workflow is that after pressing F11 for the listener record some possible use-able commands in the red part, select them and copy them to the clipboard.
Then hit [Ctrl]+[N] (with the maxscript listener window active) to create a new script and paste the clipboard code into it.
Within that window I then remove the script parts I don't need and perhaps change or research some things. Each time I want to test the code I then hit [ctrl]+[e] (which is the shortcut for evaluate code) to run the whole code. Alternatively you can select parts of your code and hit the [Enter] key that is on your numblock which will then only evaluate your selection.
have any more questions drop them here
Also hitting F1 in the MaxScript Editor brings up the MaxScript help which is really useful and very different then the regular 3dsmax help.
[ctrl] + [d] clears the maxscript listener (you need focus on it)
[ctrl] + rightclick on a rollout item gives you this:
as for rollouts (super easy to prototype GUI's)
go here and create 1st a new rollout then select the name of the rollout and go again in the menu to edit it.
In the visual maxscript editor (for editing rollouts) you can then let the tool generate the maxscript that is needed for displaying buttons, sliders and lots of other GUI stuff