<?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 Re: Extracting Ball Joint Euler Angles in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/extracting-ball-joint-euler-angles/m-p/9707387#M10913</link>
    <description>&lt;P&gt;Those angles don't exist as parameters.&amp;nbsp; You can see below the parameters that are created for a ball joint.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="BallJoint.png" style="width: 575px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/810417iFB92F6D3E9FDED2B/image-size/large?v=v2&amp;amp;px=999" role="button" title="BallJoint.png" alt="BallJoint.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The yaw, pitch, and roll are internal values local to the ball joint and are only accessible via the Drive Joint command and through the API using the properties BallJointMotion object that you already found.&amp;nbsp; Those properties are read-write so you can use the API to change them, which is the equivalent of the Drive Joint command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Aug 2020 04:10:31 GMT</pubDate>
    <dc:creator>BrianEkins</dc:creator>
    <dc:date>2020-08-24T04:10:31Z</dc:date>
    <item>
      <title>Extracting Ball Joint Euler Angles</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/extracting-ball-joint-euler-angles/m-p/9704967#M10911</link>
      <description>&lt;P&gt;1) Are ball joint Euler angles accessible as parameters?&amp;nbsp; Can't find parameter names.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Should angles be accessible with something like this?&amp;nbsp; What attribute extracts the value of the property: yaw ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;# Extract yaw, pitch and roll angles for a ball joint named 'Ball Joint'

ballJoint = root.joints.itemByName('Ball Joint')

yaw =   adsk.fusion.BallJointMotion.yawValue 
pitch = adsk.fusion.BallJointMotion.pitchValue
roll =  adsk.fusion.BallJointMotion.rollValue

yawMsg =   'Yaw =   {:.3f}°'.format(math.degrees(yaw.???))
pitchMsg = 'Pitch = {:.3f}°'.format(math.degrees(pitch.???))
rollMsg =  'Roll =  {:.3f}°'.format(math.degrees(roll.???))
&lt;/LI-CODE&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 16:58:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/extracting-ball-joint-euler-angles/m-p/9704967#M10911</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-21T16:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Ball Joint Euler Angles</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/extracting-ball-joint-euler-angles/m-p/9706193#M10912</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Still haven't found the Euler angle parameter names, but&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2)This extracts the angles (note a little renaming from first example):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;rodEnd = root.joints.itemByName('Ball Joint')
rodEndMotion = adsk.fusion.BallJointMotion.cast(rodEnd.jointMotion)

yaw = rodEndMotion.yawValue
pitch = rodEndMotion.pitchValue
roll = rodEndMotion.rollValue

msg = 'Yaw = {:.3f}°\nPitch = {:.3f}°\nRoll = {:.3f}°'.format(math.degrees(yaw), math.degrees(pitch),  math.degrees(roll))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Aug 2020 18:27:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/extracting-ball-joint-euler-angles/m-p/9706193#M10912</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-22T18:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Ball Joint Euler Angles</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/extracting-ball-joint-euler-angles/m-p/9707387#M10913</link>
      <description>&lt;P&gt;Those angles don't exist as parameters.&amp;nbsp; You can see below the parameters that are created for a ball joint.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="BallJoint.png" style="width: 575px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/810417iFB92F6D3E9FDED2B/image-size/large?v=v2&amp;amp;px=999" role="button" title="BallJoint.png" alt="BallJoint.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The yaw, pitch, and roll are internal values local to the ball joint and are only accessible via the Drive Joint command and through the API using the properties BallJointMotion object that you already found.&amp;nbsp; Those properties are read-write so you can use the API to change them, which is the equivalent of the Drive Joint command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 04:10:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/extracting-ball-joint-euler-angles/m-p/9707387#M10913</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2020-08-24T04:10:31Z</dc:date>
    </item>
  </channel>
</rss>

