What is the correct syntax for a python call in the "pre-render frame mel ?

What is the correct syntax for a python call in the "pre-render frame mel ?

moiamy
Collaborator Collaborator
771 Views
1 Reply
Message 1 of 2

What is the correct syntax for a python call in the "pre-render frame mel ?

moiamy
Collaborator
Collaborator

I thought it was something like :

python ("import switchTexture switchTexture.switch()")

assuming that my python file was switchTexture.py and inside this file, it starts with :

def switch():


But I got :

Error: line 1: invalid syntax
Warning: line 0: Pre-Render MEL script failed...

0 Likes
Accepted solutions (1)
772 Views
1 Reply
Reply (1)
Message 2 of 2

viru.gupta8
Enthusiast
Enthusiast
Accepted solution

hey,

try this

python ("import switchTexture; switchTexture.switch()")
0 Likes