|
|
|
Tell us what you think of the site.
|
Autodesk Media & Entertainment User Community
|
Autodesk® 3ds Max®
|
|
Autodesk® Maya®
|
|
Autodesk® Softimage®
|
|
Autodesk® MotionBuilder®
|
|
Autodesk® Mudbox™
|
|
Autodesk® ImageModeler™
|
|
Autodesk® Sketchbook® Pro
|
|
Autodesk® Smoke on Mac®
|
|
Hey,
Anyone know if it is possible to select the ‘Base Layer’ using python? There is a function called SetCurrentLayer() that you can set your current layer with. However the Base Layer does not seem to count as a layer internally at all. So using SetCurrentLayer(0) actually sets ‘Layer 1’ to active rather then the base layer, which seems a bit odd to me!? Is it possible to select the ‘Base Layer’?
(Using MB 2009)
/Matte
|
|
|
|
Try with this:
FBSystem().CurrentTake.SetCurrentLayer(-1)
|
|
|
|
Interesting. So that should do it? hmm, iam fairly certain i tried it and it completely crashed MB. Using index -1 i mean, gonna try once more though.
/Matte
|
|
|
|
Nope, as i remember it. If i use index -1 motionbuilder crashes. :/ Anyone else having this problem? Using mb 2009 64-bit.
/Matte
|
|
|
|
Strange, tested again and it’s working. Which version of MB2009 you run? Any patch?
Cheers
|
|
|
|
No patch, using Motionbuilder 2009 64-bit 19/09/2008.
/Matte
|
|
|
|
Maybe this is the case, I am on patch e (14/05/2009), 32bit.
Sorry, can’t help more :(
|
|
|
|
Hi,
This issue was resolved in MotionBuilder 2009.D patch.
The fix is also documented in the MotionBuilder 2010-Resolved issues section of the documentation:-
Setting the Base Layer for Animation Layers in Python
It is now possible to set the base layer for animation layers using Python, following changes to these methods in FBTake: SetCurrentLayer, SetLayerName, GetLayerName, GetLayerCount, RemoveLayer.
If you require patch for MotionBuilder 2009, you will need to have an active Gold subscription support contract and contact the Autodesk support team as I do not think it is publicly available.
Regards,
Lee
|
|
|
|
|
|