Their would be a simple solution if the AppendClip node correctly propagated the metadata from the inputs instead of always sending input1s metadata regardless if its active or not. You would add metadata to each input then inspect after the node.
On Fri, Feb 15, 2013 at 5:43 PM, Nathan Rusch <nathan_ru...@hotmail.com>wrote: > I don’t think there’s a particularly simple solution to this, since > multiple inputs can be "active" at once (for dissolves). > > With the caveat that I haven’t officially tried this, you should be able > to calculate the active input by taking the 'firstFrame' value and adding > the frame counts of the inputs together in order until you hit your > "target" frame. Things will be trickier (but not impossible) if you’re > using dissolves. > > Hope this helps somewhat. > > -Nathan > > > *From:* Luca Fiorentini <luca.fiorent...@gmail.com> > *Sent:* Friday, February 15, 2013 8:55 AM > *To:* Nuke Python discussion <nuke-python@support.thefoundry.co.uk> > *Subject:* [Nuke-python] AppendClip active input > > Hi, > > Is it possible to get the active input of an AppendClip? > What I mean is, if I have have an AppendClip with 10 inputs with variable > frame lenght, can I know which input is being displayed at the current > frame? > I have been trying to figure out this for a while but without any luck. > > Thanks! > > -- > *Luca Fiorentini - 3D Lighting Artist* > My Showreel <http://www.vimeo.com/lucafiorentini/reel> - My > blog<http://lucafiorentini.wordpress.com>- My > Flickr <http://www.flickr.com/photos/lucafiorentini> > > ------------------------------ > _______________________________________________ > Nuke-python mailing list > Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > > > _______________________________________________ > Nuke-python mailing list > Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > >
_______________________________________________ Nuke-python mailing list Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python