Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.
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.
Solved! Go to 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);
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.