<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Odd Behavior - Shelf Calling Python Function in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/odd-behavior-shelf-calling-python-function/m-p/8129393#M9490</link>
    <description>&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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 '&amp;lt;built-in function raw_input&amp;gt;'. 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 &amp;lt;built-in some&amp;nbsp; function&amp;gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone experience this? Is there documentation I can look into.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jul 2018 17:19:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-07-13T17:19:16Z</dc:date>
    <item>
      <title>Odd Behavior - Shelf Calling Python Function</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/odd-behavior-shelf-calling-python-function/m-p/8129393#M9490</link>
      <description>&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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 '&amp;lt;built-in function raw_input&amp;gt;'. 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 &amp;lt;built-in some&amp;nbsp; function&amp;gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone experience this? Is there documentation I can look into.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 17:19:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/odd-behavior-shelf-calling-python-function/m-p/8129393#M9490</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-13T17:19:16Z</dc:date>
    </item>
  </channel>
</rss>

