Odd Behavior - Shelf Calling Python Function

Odd Behavior - Shelf Calling Python Function

Anonymous
Not applicable
430 Views
0 Replies
Message 1 of 1

Odd Behavior - Shelf Calling Python Function

Anonymous
Not applicable

Setup: I have a python file that creates a shelf and adds a button which calls function. For testing purposes I changed the command to a built in python function, lets say raw_input. 

 

Problem: When I set this up to run at startup, maya creates the shelf and the button, but clicking the button returns syntax error. When I look in the Shelf Editor it shows my command as '<built-in function raw_input>'. If I copy and paste the contents of this python file into the built in maya python interpreter it works perfectly fine. The shelf editor shows the command as 'raw_input' (I've tested with a bunch of different functions, built in and homemade). For testing I grabbed code online and put it in the startup path and it displayed the same behavior, shelf editor says the command is <built-in some  function>. 

 

Anyone experience this? Is there documentation I can look into. 

0 Likes
431 Views
0 Replies
Replies (0)