Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® MotionBuilder® / Python / Selecting 'Base Layer'
  RSS 2.0 ATOM  

Selecting 'Base Layer'
Rate this thread
 
31787
 
Permlink of this thread  
avatar
  • Matte
  • Posted: 07 July 2009 12:43 AM
  • Total Posts: 23
  • Joined: 22 January 2008 02:13 PM

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



Replies: 0
avatar
  • KxL
  • Posted: 20 July 2009 05:55 PM

Try with this:

FBSystem().CurrentTake.SetCurrentLayer(-1)


Replies: 0
avatar
  • Matte
  • Posted: 22 July 2009 09:42 AM

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



Replies: 0
avatar
  • Matte
  • Posted: 23 July 2009 04:05 AM

Nope, as i remember it. If i use index -1 motionbuilder crashes. :/ Anyone else having this problem? Using mb 2009 64-bit.

/Matte



Replies: 0
avatar
  • KxL
  • Posted: 30 July 2009 10:15 PM

Strange, tested again and it’s working. Which version of MB2009 you run? Any patch?

Cheers



Replies: 0
avatar
  • Matte
  • Posted: 02 August 2009 08:37 PM

No patch, using Motionbuilder 2009 64-bit 19/09/2008.

/Matte



Replies: 0
avatar
  • KxL
  • Posted: 03 August 2009 08:56 AM

Maybe this is the case, I am on patch e (14/05/2009), 32bit.

Sorry, can’t help more :(



Replies: 0
avatar

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



Replies: 0