Next Generation Digital Entertainment Creation Software
Create the future with Autodesk 3ds Max 2011 and Autodesk Maya 2011 software.
  • 1/3
You are here:Forum Home / Autodesk® MotionBuilder® / Open Reality / How to Add Scripts to MotionBuilder Menu as MenuItems.
  RSS 2.0 ATOM  

How to Add Scripts to MotionBuilder Menu as MenuItems.
Rate this thread
 
40563
 
Permlink of this thread   Subscribe to this thread
avatar
  • BABUA
  • Posted: 10 March 2010 05:23 AM
  • Total Posts: 4
  • Joined: 2010-03-10 10:14:43

I wrote some scripts in MB.Now I want to add my scripts to the MotionBuilder Menu as menuItems.
If any one knows,plz Reply me.

Regards,
Babu & Nagaraju.



Replies: 0
avatar
  • Tistatos
  • Posted: 10 March 2010 08:22 AM

Just wanted to add that I’m also very interested in this



Replies: 1
/img/forum/dark/default_avatar.png

Thanks Neill.

But, we have one doubt is there any possibility to do this using Python instead of WinApi.

Regards,
Babu & Naga Raju.

Author: BABUA

Replied: 12 March 2010 04:11 AM  
avatar

I have done adding script menu items using windows api. I wrote about that on my blog - http://neill3d.com/renaming-openreality-menu



Replies: 2
/img/forum/dark/default_avatar.png

Thanks, but it seems like some parts of your code is missing from the site you linked, because one of the lines looks like this:  “ for (int i=0; i { “ . which doesn’t seem to be right.

is it possible for you to perhaps send a working copy of this solution?

Author: Tistatos

Replied: 12 March 2010 04:42 AM  
/img/forum/dark/default_avatar.png

double post

Author: Tistatos

Replied: 12 March 2010 05:12 AM  
avatar

Thanks for that, I’ll correct the post.



Replies: 0
avatar
  • djwreck
  • Posted: 12 March 2010 04:47 PM

Here a solutions that we found at work for now…

here’s the basic idea
Copy all your scripts to C:\Program Files\Autodesk\MotionBuilder 2010\bin\config\PythonStartup,
make sure you have the same path in the settings <<settings/Preferences/Python/python startup folder>> then open the python editor and click on the hammer button, it should build a UI called Python Tool Manager with all your scripts inside, then open all your scripts you want and save a layout with them, everytime you’ll open Motion builder or click on your new layout your tools will be there.

AT WORK...W.I.P (idea #2)
for every Layout <<Creation, Animation, Editing, Preview, Story>> save a new layout with your tools loaded so for <<Creation>> save it <<myCreation>>, for <<Animation>> save it myAnimation and so on..

after that go in C:\Program Files\Autodesk\MotionBuilder 2010\bin\config\Layouts\Base and replace
your layouts with the base ones of motion builder, make a backups first of the old ones and paste them there rename them by removing the <<my>> before <<myCreation>> <<myAnimation>> it need to look the same as the old files before.

You’re wondering why are we doing this?? it’s because this way no one will be able to update the base layouts and your tools will always load every time you click on one of the layouts

I also recommend you to build a UI that calls all your scripts instead of inserting all your individual scripts in motion builder then for updates change the link of the start up folder in <<settings/prefrences/Python>> to a different drive on the network and there you go



Replies: 1
/img/forum/dark/default_avatar.png

Thanks djwreck,

But i am using MotionBuilder 7.5. above ideas will work in MotionBuilder 7.5. I am unable to find C:\Program Files\Autodesk\MotionBuilder75\bin\config\ PythonStartup. secound Idea , I found C:\Program Files\Autodesk\MotionBuilder75\bin\config\Layouts\Base . Here is animation, preview,editing all are txt files, can you explain clearly how will i do with that.

Author: BABUA

Replied: 17 March 2010 12:16 AM  




   
  Settings Choose Theme color: