[Bf-python] displaying current scene fps in addon preference?
flavio soares
qazav3.0 at gmail.com
Fri Feb 7 16:58:49 CET 2014
Hello,
In an addon with preferences, is there a way of displaying the project's
current scene fps inside a box as default, instead of some fixed number?
This is the image of the preferences
box<http://florestavermelha.files.wordpress.com/2014/02/revolver.jpg>
.
The current code is this:
prop_fps = FloatProperty(
name="FPS (Beware!)",
description="Transcoded videos will have this FPS - \
this *MUST* be the same as your project",
default=24.00
)
The idea would be to show the result of this:
render = bpy.context.scene.render
fps = round((render.fps / render.fps_base), 3)
Just in case, full code is
here<https://github.com/szaszak/blender_velvets/blob/master/velvet_revolver.py>,
addon is already functional.
thanks for the help!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20140207/3b17be3f/attachment.html>
More information about the Bf-python
mailing list