Announcements

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

Animate FilmWidth/FilmHeight with fbxsdk

Anonymous

Animate FilmWidth/FilmHeight with fbxsdk

Anonymous
Not applicable

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.

0 Likes
Reply
Accepted solutions (1)
514 Views
2 Replies
Replies (2)

Anonymous
Not applicable
Accepted solution

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);

 

0 Likes

Anonymous
Not applicable

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);

 

 

0 Likes