Share

Customizing and Uninstalling the Shelf

Customizing the Shelf

You can extend and add objects to the shelf by editing the Shelves.xml configuration file in a text editor. In Windows, the Shelves.xml file is saved in C:\Users\{username}\Documents\MB\{version}\config. In Linux, the Shelves.xml file is saved in /home/{username}/MB/{version}/config. The following section explains the Shelves.xml configuration file.

<Shelves>    <Shelf title="Files">     <Item title="New File" hint="New File" image="python/newScript.png">FBApplication().FileNew ()</Item>
        <Item title="Open..." hint="Open File" image="python/openScript.png" script="FBApplication_FileOpen" />
    
    <Item title="Open..." hint="Open File" image="python/openScript.png" script="fullpathfilename.py" />
    
    <Item title="Mapping" hint="Mapping" width="48">FBConstraintManager().TypeCreateConstraint (12)</Item>
    

...

  <Scripts>
    <Script name="FBApplication_FileOpen">
      <![CDATA[ <!-- Code to execute --> ]]>
    </Script>


    

Uninstalling the Shelf

The shelf plug-in is installed by default. To uninstall the shelf, you must delete the plug-in from the plug-in folder as follows.

  • In Windows, delete the ormotionbuilder_shelf.dll file from C:\Program Files\Autodesk\MotionBuilder \bin\x64\plugins.
  • In Linux, delete the libormotionbuilder_shelf.so* file from /usr/autodesk/MotionBuilder /bin/linux_64/plugins.

Was this information helpful?