[Bf-python] currentScene with new python API

jms jmsoler at free.fr
Fri Apr 30 13:25:44 CEST 2004


nagash at free.fr wrote:

>Hi,
>
>I just try to use my export script with the cvs version of blender and a 
>function seems to be "depricated".
>
>scene = Scene.getCurrent()
>saveFrame = scene.currentFrame() <-- this line and of course all other call to
>                                     currentFrame() are depricated
>
>the error says to use RenderData.currentFrame instead but i don't know how to 
>get that...
>
>maybe you can help me ?
>
>--
>julien
>
>_______________________________________________
>Bf-python mailing list
>Bf-python at blender.org
>http://www.blender.org/mailman/listinfo/bf-python
>
>
>  
>


import Blender
sc=Blender.Scene.getCurrent()
rc=sc.getRenderingContext()
curfram=rc.currentFrame()
print curfram


 ( also posted on the French forum last Tuesday:
http://www.zoo-logique.org/3D.Blender/newsportal/article.php?id=65582&group=3D.Blender
)


Regards.








More information about the Bf-python mailing list