<?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 ScriptJob with -attributeChanged flag and references in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/scriptjob-with-attributechanged-flag-and-references/m-p/3994066#M17824</link>
    <description>Everyone,&lt;BR /&gt;&lt;BR /&gt;I have a character with arms and legs controled by a Ik-Fk switch. The switching mechanism is based on a scriptJob with the &lt;I&gt;-attributeChanged&lt;/I&gt; flag. This character will be referenced into a scene for animation. In order to enable the switches on file load, I have a script node set to do that. All works well until I reference the file.&lt;BR /&gt;&lt;BR /&gt;Because the referenced file is under a namespace, the script node does not find the object onto which to apply the scriptJob: lets say the object &lt;B&gt;armControl.ikFkSwitch &lt;/B&gt;becomes &lt;B&gt;character:armControl.ikFkSwitch&lt;/B&gt;.&lt;BR /&gt;&lt;BR /&gt;1. Since the characters are setup using a standard naming convention, there might be many objects name &lt;I&gt;armControl&lt;/I&gt;, so I cant really look for it effectively.&lt;BR /&gt;&lt;BR /&gt;2. Is there a way for the script node to know if it is referenced, not just opened?&lt;BR /&gt;&lt;BR /&gt;3. The &lt;I&gt;namespace&lt;/I&gt; documentation does not really help in this case. Is there a way I can know for certain the last namespace added into a file?&lt;BR /&gt;&lt;BR /&gt;4. Is there a way for a script node to select itself, or at least read its name? my idea is to have a permanent connection between the script node and the objects it sets scriptJobs to, using a message attribute.&lt;BR /&gt;&lt;BR /&gt;Any other ideas would be very welcomed, thank you.</description>
    <pubDate>Mon, 18 Feb 2008 23:40:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-02-18T23:40:24Z</dc:date>
    <item>
      <title>ScriptJob with -attributeChanged flag and references</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/scriptjob-with-attributechanged-flag-and-references/m-p/3994066#M17824</link>
      <description>Everyone,&lt;BR /&gt;&lt;BR /&gt;I have a character with arms and legs controled by a Ik-Fk switch. The switching mechanism is based on a scriptJob with the &lt;I&gt;-attributeChanged&lt;/I&gt; flag. This character will be referenced into a scene for animation. In order to enable the switches on file load, I have a script node set to do that. All works well until I reference the file.&lt;BR /&gt;&lt;BR /&gt;Because the referenced file is under a namespace, the script node does not find the object onto which to apply the scriptJob: lets say the object &lt;B&gt;armControl.ikFkSwitch &lt;/B&gt;becomes &lt;B&gt;character:armControl.ikFkSwitch&lt;/B&gt;.&lt;BR /&gt;&lt;BR /&gt;1. Since the characters are setup using a standard naming convention, there might be many objects name &lt;I&gt;armControl&lt;/I&gt;, so I cant really look for it effectively.&lt;BR /&gt;&lt;BR /&gt;2. Is there a way for the script node to know if it is referenced, not just opened?&lt;BR /&gt;&lt;BR /&gt;3. The &lt;I&gt;namespace&lt;/I&gt; documentation does not really help in this case. Is there a way I can know for certain the last namespace added into a file?&lt;BR /&gt;&lt;BR /&gt;4. Is there a way for a script node to select itself, or at least read its name? my idea is to have a permanent connection between the script node and the objects it sets scriptJobs to, using a message attribute.&lt;BR /&gt;&lt;BR /&gt;Any other ideas would be very welcomed, thank you.</description>
      <pubDate>Mon, 18 Feb 2008 23:40:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/scriptjob-with-attributechanged-flag-and-references/m-p/3994066#M17824</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-18T23:40:24Z</dc:date>
    </item>
  </channel>
</rss>

