Announcements

Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.

Community
FBX Forum
Welcome to Autodesk’s FBX Forums. Share your knowledge, ask questions, and explore popular FBX topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Animate FilmWidth/FilmHeight with fbxsdk

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Anonymous
511 Views, 2 Replies

Animate FilmWidth/FilmHeight with fbxsdk

Hi. I have a question about using fbxsdk.

How can I create AnimationCurveNode for FilmWidth and FilmHeight for FbxCamera? I would expect to use something like:

 

auto curve = camera->FilmWidth.GetCurve(pAnimLayer, true);
auto index = curve->KeyAdd(pTime);
curve->KeySetValue(index, value);

 

That works for FocalLength but not for FilmWidth.

Documentation says that those properties are read-only and function void SetApertureWidth(double pWidth) should be used instead. However I do not understand how can I create keys with different values. And I know that's possible because Maya can export fbx files with animated film size.

Tags (2)
Labels (1)
  • FBX
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

ok I actually found out that it is possible to add keys to curve as shown in my code sample above. But property need to be explicitly marked as animatable beforehand:

camera->FilmWidth.ModifyFlag(FbxPropertyFlags::eAnimatable, true);

 

Message 3 of 3
Anonymous
in reply to: Anonymous

ok I actually found out that it is possible to add keys to curve as shown in my code sample above. But property need to be explicitly marked as animatable beforehand:

 

camera->FilmWidth.ModifyFlag(FbxPropertyFlags::eAnimatable, true);

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report