0

Python: fastest / canonical way to get the currently viewed image's resolution?

Using Python, how do I retrieve the height and width of the image being actively viewed?

I am trying to write a mode that will zoom in and out on the image in logical ratios (1:1, 2:1, 4:1, 8:1, 16:1, etc) ... in order to do this I need both the size of the current RV viewport (rv.commands.viewSize()) and the resolution of the currently viewed image.  However rv.commands.getIntProperty('%s_sequence.output.size') % rv.commands.viewNode() returns the DEFAULT resolution of the first sequence loaded in the RV timeline, and not the resolution of the sequence over which the playhead currently sits.

Any help would be appreciated.

0 comments

Please sign in to leave a comment.