<?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 Control Constraint Priority Programmatically in MotionBuilder Forum</title>
    <link>https://forums.autodesk.com/t5/motionbuilder-forum/control-constraint-priority-programmatically/m-p/10972269#M562</link>
    <description>&lt;P&gt;In my plugin I need to change constraint priority, the only info I found about this is here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/support/motionbuilder/learn-explore/caas/CloudHelp/cloudhelp/2022/ENU/MotionBuilder/files/GUID-D7CAD565-FF0F-416B-B709-C8DAD7A42E52-htm.html" target="_blank"&gt;https://knowledge.autodesk.com/support/motionbuilder/learn-explore/caas/CloudHelp/cloudhelp/2022/ENU/MotionBuilder/files/GUID-D7CAD565-FF0F-416B-B709-C8DAD7A42E52-htm.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However it seems like there is no way to do this programmatically (either C++ or python).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to do a test by moving the last constraint to the first position however this is not allowed&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import pyfbsdk
scene = pyfbsdk.FBSystem().Scene
# Test, try to put the last constraint in the list in the first position
constraints = scene.Constraints
myConstraint = constraints.pop()
constraints.insert(0, myConstraint)

# Returns the following error:
# Traceback (most recent call last):
#   File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;
# NotImplementedError: can only insert at the end of a property list&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to do this? Obviously you can do in the navigator, however I did not see any way of doing it in my plugin...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;</description>
    <pubDate>Fri, 25 Feb 2022 16:41:41 GMT</pubDate>
    <dc:creator>antoine.trottier-delorme6DR7D</dc:creator>
    <dc:date>2022-02-25T16:41:41Z</dc:date>
    <item>
      <title>Control Constraint Priority Programmatically</title>
      <link>https://forums.autodesk.com/t5/motionbuilder-forum/control-constraint-priority-programmatically/m-p/10972269#M562</link>
      <description>&lt;P&gt;In my plugin I need to change constraint priority, the only info I found about this is here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/support/motionbuilder/learn-explore/caas/CloudHelp/cloudhelp/2022/ENU/MotionBuilder/files/GUID-D7CAD565-FF0F-416B-B709-C8DAD7A42E52-htm.html" target="_blank"&gt;https://knowledge.autodesk.com/support/motionbuilder/learn-explore/caas/CloudHelp/cloudhelp/2022/ENU/MotionBuilder/files/GUID-D7CAD565-FF0F-416B-B709-C8DAD7A42E52-htm.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However it seems like there is no way to do this programmatically (either C++ or python).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to do a test by moving the last constraint to the first position however this is not allowed&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import pyfbsdk
scene = pyfbsdk.FBSystem().Scene
# Test, try to put the last constraint in the list in the first position
constraints = scene.Constraints
myConstraint = constraints.pop()
constraints.insert(0, myConstraint)

# Returns the following error:
# Traceback (most recent call last):
#   File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;
# NotImplementedError: can only insert at the end of a property list&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to do this? Obviously you can do in the navigator, however I did not see any way of doing it in my plugin...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 16:41:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/motionbuilder-forum/control-constraint-priority-programmatically/m-p/10972269#M562</guid>
      <dc:creator>antoine.trottier-delorme6DR7D</dc:creator>
      <dc:date>2022-02-25T16:41:41Z</dc:date>
    </item>
  </channel>
</rss>

