how to grab pixel aspect using python

Hi , i’m making a gizmo, let’s name it a dummy node doing simple task. so when this node is connect to a tree , its label will simply display current pixel aspect ratio of its input stream. Does anyone know how to grab the pixel aspect from abritrary node? if it’s constant/checkerboard/read/etc , i can just easily grab it using .knob(‘format’). But what if let say the tree is like this :
constant1 –> blur1 –> transform1 –> dummy. So my dummy is placed below the transform node. Yes, if i want i can get it using .input(0).input(0)…..knob(‘format’) without problem. But this approach is not dynamic, if i insert something between constant1 and transform1 then the code will break. Try to search dir() but still got nothing about it. Anyone can help? or any other idea?

thanx.

No Responses to “how to grab pixel aspect using python”

Post a Comment