Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

We can fill a mel/python command in input or output of Miarmy Channelsentence, this can make allow your Maya scene interactive with your agents or allow your agents trigger Maya do something! This can expanding our works to another level.

The format sentence language will be:

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

 

...

  • ??? return value (??? : mel proc name)
  • maya python:??? return value (??? : python function name)

 

It only support predefined procedure or functions

For example:

  • maya . mel:getAttr pSphere1.ty;maya.mel:onemelproc; return value from 0 to 10
  • maya . python:onepycommand()

 

Image Removed
A MEL command in input (complete command)

  • return value > 5

Note: the return value of this command should be ONE float value, or otherwise, it will not work properly.

 


This also can be output sentence, for example something happened we execute a mel/python command. 

Image RemovedImage Added

Python command in output (predefined function)
 

And if we specify 2 functions, we can split it with "?" and when node activate it will run 1st function, otherwise run 2nd function

Image Added
2 Python commands in output run when node active or deactivate (predefined function)