Get attribute from alembic camera (maya export)

   1807   0   0
User Avatar
Member
10 posts
Joined: Jan. 2014
Offline
Hi,

I need some help to get an extra attribute 'EndFrame' from a alembic camera comming from maya.

So far my guess and try brought me here:

root = hou.pwd().node('../..') return __import__("_alembic_hom_extensions").alembicGetCameraDict(root.hdaModule().GetFileName(root), '/M', root.get('EndFrame')

That is the python code I put into a new float parameter I put onto the camera view where e.g. the focal length parameter is located.

But it is not working. As I am a noob to python I am really stuck.

The path to the camera is this /obj/Test.abc/M/MShape.

The camera parameter 'EndFrame' is located on the transform node in maya.

Thanks for your help!

Rico
Edited by dagoose - Sept. 7, 2021 01:55:33
  • Quick Links