Miarmy Crowd Simulation Documentation (English)
MEL&Python Source in Logic Sentences
We can fill a mel/python command in input or output of sentence, this allow your Maya scene interactive with your agents or allow your agents trigger Maya do something.
The sentence language will be:
- maya mel:??? return value (??? : mel proc name)
- maya python:??? return value (??? : python function name)
It only support predefined procedure or functions
For example:
- maya mel:mel:onemelproc; return value from 0 to 10
- maya python:onepycommand() 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.
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
2 Python commands in output run when node active or deactivate (predefined function)
Basefount Technology