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 / How to set / get Scene Metadata (from menu File>Properties)
  RSS 2.0 ATOM  

How to set / get Scene Metadata (from menu File>Properties)
Rate this thread
 
64268
 
Permlink of this thread  
avatar
  • gon2024
  • Posted: 07 February 2012 09:09 PM
  • Total Posts: 8
  • Joined: 13 April 2010 03:12 AM

Hello mobu-community.

You can in the menu File>Properties add some metadata of your scene.
It is stored as a GlobalInfo into the fbx file:

Creator"FBX SDK/FBX Plugins version 2012.0"
    
SceneInfo"SceneInfo::GlobalInfo""UserData" {
        Type
"UserData"
        
Version100
        MetaData
:  {
            Version
123
            Title
"myTitle"
            
Subject"mySubject"
            
Author"Me"
            
Keywords"tags"
            
Revision"456"
            
Comment"This is a comment"
        
}

My question is, how to get/set these informations in pyfbsdk ?
I cannot find a way to do it sadly.

There is a GlobalInfo component in the Scene instance, but without any Component or Property T.T

for currentComp in pyfbsdk.FBSystem().Scene.Components:
    if 
currentComp.Name == 'GlobalInfo':
        print 
len(currentComp.PropertyList)
        print 
len(currentComp.Components)
0
0
>>>

A little help will be very appreciated^^.



Replies: 0