flavio soares
2014-02-07 15:58:49 UTC
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<Loading Image...
>
.
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.htm
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<Loading Image...
.
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.htm