You have to create a procedure to have a single command execute multiple other commands. for example: global proc testing(){print "words \n"; print "more words";} print (`testing`);
Its been a while since I've done Mel but this should work. Basically concatenating a whole command into String. Nice idea btw. for ( $i=0; $i<$count; ++$i ) { string $command = "hyperShade -assign " + $materials[$i] + "; print (\"My cool second command\")"; button -label "A" -command ($command); }
Hey everyone, I've been teaching myself MEL scripting but I'm sort of stuck on a particular syntax. I've searched all over for my specific problem but I'm not sure which key words I should be searching for and can't find anything, so thank you in advance to anyone who can help. I have a button setup with a command within…
I've tried every method I understand to try to get this -command flag to accept more than one line of code but I've never had to write a script this way, so I can't figure it out. In this case, if you could provide an example line of code it would help me immensely with how to write the rest of my scripts. Below is an…