how to get the current frame..

Hi…
Here again…

if I use
scene.currentFrame()
the compiler tells me
that it’s a deprecated method, and use
RenderData.currentFrame()
instead…
But RenderData is not defined!!!
Do you know something about this,
or how to get the current frame number?
Thanks!!!

Actually I discovered the API 2.33a…
It seems to be a Scene.Render.RenderData.currentFrame() method,
but printing
print dir(Scene)
it does NOT find “Render”…
why? I have Blender 2.33a
and I got the error
[File “.BLanguages” not found]
every time I start Blender…
Thanks…

I’ve got it!

you should do

scene.getRenderingContext().currentFrame()…

Really shorter:
curframe=Blender.Get(‘curframe’)