Alembic Camera export

   254   2   1
User Avatar
Member
2 posts
Joined: Dec. 2022
Offline
Hello everyone,

I'm working in a project where I have to export a camera in alembic for every scene. So I'm doing it by script, but my problem is that I don't know how to solve this step.

I have an alembic obj imported, but into the alembic there are some meshes. I need just to pick it up the alembic and export a new alembic with only the camera. I tried to access this with the Object Merge and use a rop alembic to export, but seems that it doesn't export the camera, only the meshes.

If I go to File>Export>Alembic... and select the camera inside the alembic, it works fine, but I'm not sure if I can access the "Alembic Export Options" by python, and make this process by script.

Is there a way to export only camera from the alembic, to a new alembic file?

Attachments:
Capturar.PNG (49.7 KB)

User Avatar
Member
401 posts
Joined: Nov. 2016
Offline
In an alembic rop (in the /out context) you can export cameras, and specify which objects to export in your alembic. If your cameras are named in a similar pattern you can easily isolate them using wildcards.

Attachments:
Screenshot from 2024-05-06 15-40-04.png (66.0 KB)

User Avatar
Member
2 posts
Joined: Dec. 2022
Offline
This is exactly what I wanted, thank you!
  • Quick Links