Hey

You can get current frame for particular operator from OutputContaxt but 
remember, that there isn't overall ' current frame' - this value is correct 
only for particular Op or tree and can be modify by other Ops above and below.
As far as I know, internally Nuke has no such a value like "fps". This what you 
see in project it's mainly setting for Viewer's playback. Nuke was developed to 
works with frames  and only relationship between neighbours frames is actually 
important, but not relationship frame/time. Differently than in editing 
softwares. But If I'm wrong, fathers of Nuke will correct me...
You can embed some tcl script, which might reads out "fps" setting from project 
and return this value to your Op in runtime, if you really need it.

Best
Adrian

W dniu 2011-05-30 10:18:46 użytkownik Thomas Obermaier <t.oberma...@gmx.de> 
napisał:
> Hi,
> 
> i am looking for an appropriate way to get the current frame time while 
> rendering. For this, i need either the time or the current frame rate, 
> in order to calculate the time. How can i get the time or the framerate?
> 
> I can obtain the current frame id by reading the OutputContext. I spent 
> many hours but couldn't find anything in the documentation, and somehow, 
> it's getting a bit urgent now :(
> 
> Best Regards,
> Thomas
> _______________________________________________
> Nuke-dev mailing list
> Nuke-dev@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev
> 



_______________________________________________
Nuke-dev mailing list
Nuke-dev@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev

Reply via email to