




I added a new button named 'Random' and change the title of the control panel to 'Zombie Maker'. I also created a new procedure called the 'zacp_random()'. In the 'zacp_random()', I copied the previous codes and edited the codes only for the zombies. I created a variable and set it to random between 1 to 50. I also created a 'text' and the 'random_number_generated' that will generate when the 'Random' button is pressed in the control panel. The random button will not only be generated at the control panel, it will change the number of zombies on the stage.
In this exercise, I learnt how to do the codes in Maya. It was like a test as I have to understand the codes and try it on my own. From what I understand, MEL scripting uses ActionScript which is quite familiar for us now so it was not much of a problem. This exercise is very helpful if I need to create many objects on stage.
Reference: http://download.autodesk.com/global/docs/maya2012/en_us/index.html
No comments:
Post a Comment