I have noticed that camera keyframes are not exported as USD.
If I animate an object, export it as USD, import it again, I can still see the keyframes.
Which is not the case for the camera.
And I have noticed in the code that it’s just using the export time stamp instead of exporting for the whole animation time.
Which I found here:
void USDCameraWriter::do_write(HierarchyContext &context)
{
pxr::UsdTimeCode timecode = get_export_time_code();
And then that timecode is used for all the attributes.
Is that actually the case or is there another way to export camera keyframes? If so, is that a planned feature? Or does it exist on another branch/fork?
What I’m expecting is:
- See camera animations when exporting/importing to another project.
- Get the correct values when I call UsdGeomCamera::GetCamera(const UsdTimeCode&) for different points in time when I read it with the USD library.
The version I’m using right now is close to the latest main:
version: 4.1.0 Alpha, branch: main, commit date: 2023-10-03 18:31, hash: 660d8de7e4c5, type: Release
build date: 2023-10-04, 00:03:38
platform: ‘Linux-5.14.21-150500.53-default-x86_64-with-glibc2.31’