2

API call for reading image metadata

Hi there,

I would like to request an api call in rv.commands or extra_commands to be able to query image metadata given a source and a specified frame. 

A secondary way to return a dictionary of all metadata in all frames would be great as well.

Essentially what I'm doing now is either:

a) stepping through frame by frame and calling sourceAttributes after the frameChanged or in the render method of the plugin. (Needs some logic to cache)

b) Using an external lib (PIL) to open all the frames in the sequence and populating the dictionary on my own. (Duplicates work, opens the frames again when RV is already going to do it anyway)

In my case I need the contents of what the Tools -> Image Info widget does (tags in tiffs and exr header data)

Thanks so much!

-Gates

댓글 0개

댓글을 남기려면 로그인하세요.