Calling Python Procedure from Expression?

Calling Python Procedure from Expression?

Anonymous
Not applicable
479 Views
2 Replies
Message 1 of 3

Calling Python Procedure from Expression?

Anonymous
Not applicable
I'm currently trying to run a procedure during playback, that executes every frame. I'm planning to use an expression which calls the appropriate procedure in my .py file. However, I can only seem to currently get it to call a procedure using MEL.

I understand that you can use Python to evaluate MEL strings, but is the reverse possible, i.e. using MEL to run a Python procedure?

(NB: Re-writing the script in MEL isn't a possibility - if anyone knows of a better way to run a procedure every frame during playback (already tried scriptJob) please let me know. Currently the tool is manually moving the time-slider, which isn't what I want)

Thanks!
0 Likes
480 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
python "myproc()";
0 Likes
Message 3 of 3

Anonymous
Not applicable
Can't believe it was that simple. Thanks.
0 Likes