AREA forums upgrade
Read more about the planned upgrade of our forums
  • 1/3
You are here: Forum Home / Autodesk® FBX® / FBX SDK / Examining Animlayers created in code?
IMPORTANT ANNOUNCEMENT ABOUT AREA FORUMS
  RSS 2.0 ATOM  

Examining Animlayers created in code?
Rate this thread
 
71285
 
Permlink of this thread  
avatar
  • Total Posts: 3
  • Joined: 18 September 2012 04:11 PM

Just a general sort of question, I’m noticing that when I’ve created a few different animlayers through code that they don’t seem to display in Maya when I import the fbx file. Looking at the ascii version of the file, I can see that those structures exist… but they don’t appear to be visible in Maya.

I tried the sample code in ExportScene02 and it seemed to be the same (if I import the .fbx file generated by the example code, there appear to be no animlayers in the animation layer editor).

Is it possible to make an animlayer through code that is then able to be manipulated in Maya by another user?

Thanks!



Replies: 2
/userdata/avatar/uxh72ggpe.jpg

This should work, since the animation layers (FbxAnimLayer and FbxAnimStack) were built specifically for this.

Author: Robert Goulet

Replied: 19 September 2012 03:08 AM  
/img/forum/light/default_avatar.png

That’s what I was originally thinking… I’ll muck around a bit more and see if there’s anything obvious that I’m doing wrong.

Author: Kiyoshi555

Replied: 20 September 2012 03:45 PM  
avatar
  • Grototo
  • Posted: 07 November 2012 02:15 AM

Hi,
I have a similar problem. I add 3 animation layers to an FBX file using FBX-SDK. But when I export (with SaveScene() in common.cxx) the 3 animations that I add to the anim stack, they are correctly displayed by viewscene but the properties are missing:

AnimationStack: 52006928, “AnimStack::Take 001”, “” {
Properties70:  {
P: “LocalStop”, “KTime”, “Time”, “”,48495465900
P: “ReferenceStart”, “KTime”, “Time”, “”,1847446320
P: “ReferenceStop”, “KTime”, “Time”, “”,1847446320000
}
}
AnimationLayer: 27874912, “AnimLayer::Take 001:BaseAnimation”, “” {
Properties70:  {
P: “Color”, “ColorRGB”, “Color”, “”,0.611764705882353,0,0.16078431372549
P: “BlendModeBypass”, “ULongLong”, “”, “”,131584
P: “MultiTake”, “int”, “Integer”, “”,0
P: “mLayerID”, “int”, “Integer”, “”,0
P: “MutedForSolo”, “bool”, “”, “”,0
P: “MutedByParent”, “bool”, “”, “”,0
P: “LockedByParent”, “bool”, “”, “”,0
P: “ParentCollapseVisibility”, “bool”, “”, “”,1
}
}
AnimationLayer: 27889824, “AnimLayer::Take 001:AnimLayer1”, “” {
Properties70:  {
P: “Color”, “ColorRGB”, “Color”, “”,0.611764705882353,0,0.16078431372549
P: “BlendModeBypass”, “ULongLong”, “”, “”,131584
P: “MultiTake”, “int”, “Integer”, “”,0
P: “mLayerID”, “int”, “Integer”, “”,1
P: “MutedForSolo”, “bool”, “”, “”,0
P: “MutedByParent”, “bool”, “”, “”,0
P: “LockedByParent”, “bool”, “”, “”,0
P: “ParentCollapseVisibility”, “bool”, “”, “”,1
}
}
AnimationLayer: 27892912, “AnimLayer::Take 001:AnimLayer2”, “” {
Properties70:  {
P: “Color”, “ColorRGB”, “Color”, “”,0.611764705882353,0,0.16078431372549
P: “BlendModeBypass”, “ULongLong”, “”, “”,131584
P: “MultiTake”, “int”, “Integer”, “”,0
P: “mLayerID”, “int”, “Integer”, “”,2
P: “MutedForSolo”, “bool”, “”, “”,0
P: “MutedByParent”, “bool”, “”, “”,0
P: “LockedByParent”, “bool”, “”, “”,0
P: “ParentCollapseVisibility”, “bool”, “”, “”,1
}
}
AnimationLayer: 18268368, “AnimLayer::Morphing-Animation_1:AnimLayer”, “” {
}
AnimationLayer: 24120640, “AnimLayer::Skinning-Animation_1:AnimLayer”, “” {
}
AnimationLayer: 38653008, “AnimLayer::Skinning-Animation_2:AnimLayer”, “” {
}

It is a problem because I need to use and modify the “Muted...” options. Anybody can help me, please?
Thanks.



Replies: 1
/userdata/avatar/uxh72ggpe.jpg

Please register to the FBX Beta site and submit your problem there so we can further investigate. Thank you.

Author: Robert Goulet

Replied: 08 November 2012 02:49 AM  
avatar
  • Grototo
  • Posted: 08 November 2012 09:39 PM

Ok. I introduced my problem in Beta forum:
BSPR-5949 - “Saving FbxAnimLayer properties in FBX files”



Replies: 0
avatar

The FbxAnimLayer in the FBX SDK contains the following properties ones only:

P: “Weight”, “Number”, “”, “A”,100
P: “Mute”, “bool”, “”, “”,0
P: “Solo”, “bool”, “”, “”,0
P: “Lock”, “bool”, “”, “”,0
P: “Color”, “ColorRGB”, “Color”, “”,0.8,0.8,0.8
P: “BlendMode”, “enum”, “”, “”,0
P: “RotationAccumulationMode”, “enum”, “”, “”,0
P: “ScaleAccumulationMode”, “enum”, “”, “”,0
P: “BlendModeBypass”, “ULongLong”, “”, “”,0

All the other ones seen are proprietary properties added by MotionBuilder. If you want to use them, you will need to create them as custom properties. Note that these properties will be ignored by all the other Autodesk products that read FBX files.

You can have a look at the Animation sample to learn how all the FbxAnim classes are typically used.



Roberto Regalino
FBX Team

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

Ok, thanks!

Author: Grototo

Replied: 15 November 2012 01:07 AM