<?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: MotionBuilder Trajectory (Motion Trail) Toggle in MotionBuilder Forum</title>
    <link>https://forums.autodesk.com/t5/motionbuilder-forum/motionbuilder-trajectory-motion-trail-toggle/m-p/7927618#M1778</link>
    <description>&lt;P&gt;I&amp;nbsp;noticed that there's already a keyboard mapper script that comes with MotionBuilder which you can use to assign shortcuts:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In the &lt;EM&gt;Asset Browser&lt;/EM&gt; navigate to &lt;EM&gt;Scripts-&amp;gt;ComplexTools&lt;/EM&gt; and there you'll find the &lt;STRONG&gt;ActionScriptMgr.py&lt;/STRONG&gt; with which you can assign the scripts to these kinds of script-slots.&lt;/LI&gt;&lt;LI&gt;You'll also find the &lt;STRONG&gt;KeyboardMapper.py&lt;/STRONG&gt; tool in which you can first select your configuration (3DS Max, Maya, etc.) and then scroll down to the script entries called &lt;EM&gt;action.global.script1&lt;/EM&gt; and so on to assign a keyboard shortcut to the slots you chose for the scripts.&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Thu, 12 Apr 2018 11:55:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-04-12T11:55:08Z</dc:date>
    <item>
      <title>MotionBuilder Trajectory (Motion Trail) Toggle</title>
      <link>https://forums.autodesk.com/t5/motionbuilder-forum/motionbuilder-trajectory-motion-trail-toggle/m-p/7822921#M1772</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;I was wondering if anybody can script (or knows of an existing script) to hotkey a toggle of the Trajectory button. I need the yellow motion trail to track arcs and movement but at times I need my mouse in a different location and simultaneously need the ability to quickly toggle it on and off.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;If anybody can whip up a Python script for this or has any idea of an existing one I'd greatly appreciate the help. I have searched high and low for this and it doesn't seem to exist. Of course, in Maya, this would be no great task at all, but the MoBu community is significantly smaller in regards to tool and script creation.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;BR /&gt;&lt;BR /&gt;Kenny&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 16:07:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/motionbuilder-forum/motionbuilder-trajectory-motion-trail-toggle/m-p/7822921#M1772</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-02T16:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: MotionBuilder Trajectory (Motion Trail) Toggle</title>
      <link>https://forums.autodesk.com/t5/motionbuilder-forum/motionbuilder-trajectory-motion-trail-toggle/m-p/7875743#M1773</link>
      <description>&lt;P&gt;I couldn't find any python command in MotionBuilder that would expose the &lt;EM&gt;Trajectories&lt;/EM&gt;&amp;nbsp; button directly. But scene components have a property for the trajectory visibility that can be changed with Python. So I whipped up a small script to do just that.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/OlafHaag/MoBu-TrajectoriesToggle" target="_blank"&gt;https://github.com/OlafHaag/MoBu-TrajectoriesToggle&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to use it:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Activate the &lt;EM&gt;Trajectories&lt;/EM&gt; button in the top of the viewer window.&lt;/LI&gt;&lt;LI&gt;Click the small arrow to its right and &lt;STRONG&gt;disable&lt;/STRONG&gt; &lt;EM&gt;'Auto Selection'&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;Assigning a keyboard shortcut is easiest with Alex Widener's hotkey editor (forked and modified):&lt;UL&gt;&lt;LI&gt;&lt;A href="https://github.com/OlafHaag/MotionBuilderHotkeyEditor" target="_blank"&gt;https://github.com/OlafHaag/MotionBuilderHotkeyEditor&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Documentation:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://www.alexwidener.com/MotionBuilderHotkeyEditor/" rel="nofollow" target="_blank"&gt;http://www.alexwidener.com/MotionBuilderHotkeyEditor/&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;After executing the hotkey editor script, which opens a window, go to File-&amp;gt;Reset Hotkeys and choose the one that you typically use for interaction.&lt;/LI&gt;&lt;LI&gt;Then in the left pane scroll down until you find the&amp;nbsp;&lt;EM&gt;action.global.script &lt;/EM&gt;entries.&lt;/LI&gt;&lt;LI&gt;Assign a shortcut command to one of the scripts and in the right pane set the full path to the &lt;EM&gt;TrajectoriesToggle.py&amp;nbsp;&lt;/EM&gt;file for the according script.&lt;/LI&gt;&lt;LI&gt;You have to &lt;STRONG&gt;restart&lt;/STRONG&gt; MotionBuilder after &lt;STRONG&gt;saving the changes&lt;/STRONG&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Since I don't know what you're doing while you would want to use the toggling, I just set it up to work on the currently selected objects.&lt;/P&gt;&lt;P&gt;Is that of any help?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 16:38:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/motionbuilder-forum/motionbuilder-trajectory-motion-trail-toggle/m-p/7875743#M1773</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-22T16:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: MotionBuilder Trajectory (Motion Trail) Toggle</title>
      <link>https://forums.autodesk.com/t5/motionbuilder-forum/motionbuilder-trajectory-motion-trail-toggle/m-p/7876239#M1774</link>
      <description>&lt;P&gt;Hey! Thank you so very much for taking the time to not just write back but help out! That's awesome. I am swamped today - and probably tomorrow - but I will check this as soon as possible and try to implement.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Again, sorry I can't immediately say if this is what I need or if I got it to work, but please know I greatly appreciate your time and your help.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sincerely,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Kenny&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 18:44:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/motionbuilder-forum/motionbuilder-trajectory-motion-trail-toggle/m-p/7876239#M1774</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-22T18:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: MotionBuilder Trajectory (Motion Trail) Toggle</title>
      <link>https://forums.autodesk.com/t5/motionbuilder-forum/motionbuilder-trajectory-motion-trail-toggle/m-p/7876969#M1775</link>
      <description>&lt;P&gt;In the meantime I added a second short script to disable the ShowTrajectory flags on all scene components.&lt;/P&gt;&lt;P&gt;You said you need to track some arcs. If you wanted to work on those arcs directly,&amp;nbsp;you could use the motionpath workflow. Check it out, if you haven't already:&amp;nbsp;&lt;A href="https://youtu.be/nXmTLf20oAU" target="_blank"&gt;Rigging Dojo Animation Tips from Twitter and GDC Tricks of the Trade&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There's probably a way to change the visibility of the motionpaths via python as well.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 23:05:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/motionbuilder-forum/motionbuilder-trajectory-motion-trail-toggle/m-p/7876969#M1775</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-22T23:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: MotionBuilder Trajectory (Motion Trail) Toggle</title>
      <link>https://forums.autodesk.com/t5/motionbuilder-forum/motionbuilder-trajectory-motion-trail-toggle/m-p/7877221#M1776</link>
      <description>&lt;P&gt;It was still bugging me, that there isn't a more direct approach. I found a snippet that lets me find the widget in the gui, but I found no means to toggle it, or find out which function it actually calls. Maybe someone else has a better solution.&lt;/P&gt;&lt;PRE&gt;from PySide import QtCore, QtGui

# Find the main window.
parent = QtGui.QApplication.activeWindow()

while True:    
    parent_widget = parent.parentWidget()
    
    if parent_widget:
        parent = parent_widget
    else:
        break
        
main_win = parent

# Look thru all the QDockWidget to find the one with window title 'Viewer'.
for dock_widget in main_win.findChildren(QtGui.QDockWidget):
    if dock_widget.windowTitle()=='Viewer':
        viewer_ctrl_widget = dock_widget.widget()
        break        
        
# Find the trajectories widget.
for widget in viewer_ctrl_widget.findChildren(QtGui.QWidget):
    if widget.accessibleName() == 'Trajectories':
        trajectories_btn = widget
        break&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 02:09:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/motionbuilder-forum/motionbuilder-trajectory-motion-trail-toggle/m-p/7877221#M1776</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-23T02:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: MotionBuilder Trajectory (Motion Trail) Toggle</title>
      <link>https://forums.autodesk.com/t5/motionbuilder-forum/motionbuilder-trajectory-motion-trail-toggle/m-p/7879088#M1777</link>
      <description>&lt;P&gt;I'm keeping an eye on this thread as you muscle through all of this, and I have to say I'm amazed at your knowledge and at your interest in this.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;I will take everything in on Monday, but right now I'm watching from 10k ft while I try to get some deliverables finished.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 15:19:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/motionbuilder-forum/motionbuilder-trajectory-motion-trail-toggle/m-p/7879088#M1777</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-23T15:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: MotionBuilder Trajectory (Motion Trail) Toggle</title>
      <link>https://forums.autodesk.com/t5/motionbuilder-forum/motionbuilder-trajectory-motion-trail-toggle/m-p/7927618#M1778</link>
      <description>&lt;P&gt;I&amp;nbsp;noticed that there's already a keyboard mapper script that comes with MotionBuilder which you can use to assign shortcuts:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In the &lt;EM&gt;Asset Browser&lt;/EM&gt; navigate to &lt;EM&gt;Scripts-&amp;gt;ComplexTools&lt;/EM&gt; and there you'll find the &lt;STRONG&gt;ActionScriptMgr.py&lt;/STRONG&gt; with which you can assign the scripts to these kinds of script-slots.&lt;/LI&gt;&lt;LI&gt;You'll also find the &lt;STRONG&gt;KeyboardMapper.py&lt;/STRONG&gt; tool in which you can first select your configuration (3DS Max, Maya, etc.) and then scroll down to the script entries called &lt;EM&gt;action.global.script1&lt;/EM&gt; and so on to assign a keyboard shortcut to the slots you chose for the scripts.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 12 Apr 2018 11:55:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/motionbuilder-forum/motionbuilder-trajectory-motion-trail-toggle/m-p/7927618#M1778</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-12T11:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: MotionBuilder Trajectory (Motion Trail) Toggle</title>
      <link>https://forums.autodesk.com/t5/motionbuilder-forum/motionbuilder-trajectory-motion-trail-toggle/m-p/13139770#M1779</link>
      <description>&lt;P&gt;from Qt.QtTest import QTest&lt;/P&gt;&lt;P&gt;QTest.mouseClick(widget, QtCore.Qt.LeftButton)&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 20:51:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/motionbuilder-forum/motionbuilder-trajectory-motion-trail-toggle/m-p/13139770#M1779</guid>
      <dc:creator>sholmesUX96W</dc:creator>
      <dc:date>2024-11-08T20:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: MotionBuilder Trajectory (Motion Trail) Toggle</title>
      <link>https://forums.autodesk.com/t5/motionbuilder-forum/motionbuilder-trajectory-motion-trail-toggle/m-p/13966618#M3859</link>
      <description>&lt;P&gt;I know it's an old thread but just in case.&lt;BR /&gt;As display trajectory is a property of your object, you can use something like this and add it to Script short cuts list.&lt;BR /&gt;It will display or hide trajectory of selected elements.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;from pyfbsdk import *

def showTrajectory(visibility = True):
    lModelList = FBModelList()
    FBGetSelectedModels( lModelList )
    for lModel in lModelList:
        showTrajectoryProp = lModel.PropertyList.Find("ShowTrajectories")
        if showTrajectoryProp:
            showTrajectoryProp.Data = visibility

showTrajectory(True) #to enable trajectory

#showTrajectory(False)#to disable trajectory&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2026 17:41:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/motionbuilder-forum/motionbuilder-trajectory-motion-trail-toggle/m-p/13966618#M3859</guid>
      <dc:creator>jps</dc:creator>
      <dc:date>2026-01-06T17:41:09Z</dc:date>
    </item>
  </channel>
</rss>

