auto grab framerange from input node

hi i create a gizmo, where on creation time, i want to grab a framerange info from its input node (the input can be any nodes). So to get the framerange (first and last), i try to put code to the ‘nuke.addOnCreate’ or ‘nuke.addOnUserCreate’ where the code is something like this :

nuke.thisNode().input(0).firstFrame()

but this give me error : ‘NoneType’ object has no attribute ‘firstFrame’. Anyone has any idea ? the firstFrame() should be available, but for whatever reason i can’t fetch it. The goal is i want my gizmo to simply fetch the framerange of any nodes which is directly connected to my gizmo. Let say my gizmo has parameters : ‘start’ and ‘end’. I want ‘start’ to be reset to whatever its input firstframe and ‘end’ will be reset to its input lastframe. I want to set them AUTOMATICALLY when i create my gizmo.

thanx

No Responses to “auto grab framerange from input node”

Post a Comment