Miarmy Crowd Simulation Documentation (English)

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

We can fill a mel/python command in input or output of Miarmy Channel, this can make your Maya scene interactive with your agents or your agents trigger Maya do something! This can expanding our works to another level
The format will be:

  • maya.mel:<mel command or mel proc name>
  • maya.python:<python command or python function>

 

We highly recommend you just use a predefined procedure or functions
For example:

  • maya.mel:getAttr pSphere1.ty;
  • maya.mel:onemelproc;
  • maya.python:onepycommand()

 


A MEL command in input (complete command)


Note: the return value of this command should be ONE float value, or otherwise, it will not work properly.
This also can be output, for example something happened we execute a mel/python command.



Python command in output (predefined function)

 

 

 

  • No labels