<div dir="ltr"><div><div><div><div><div>Hello,<br><br></div>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?<br><br></div>
<div>This is the <a href="http://florestavermelha.files.wordpress.com/2014/02/revolver.jpg">image of the preferences box</a>.<br></div><div><br></div>The current code is this:<br><br>prop_fps = FloatProperty(<br>        name="FPS (Beware!)",<br>
        description="Transcoded videos will have this FPS - \<br>                    this *MUST* be the same as your project",<br>        default=24.00<br>    )<br><br><br></div>The idea would be to show the result of this:<pre>
<span class=""><span class="">render</span> <span class="">=</span> <span class="">bpy</span><span class="">.</span><span class="">context</span><span class="">.</span><span class="">scene</span><span class="">.</span><span class="">render<br>
</span>fps</span> <span class="">=</span> <span class="">round</span><span class="">((</span><span class="">render</span><span class="">.</span><span class="">fps</span> <span class="">/</span> <span class="">render</span><span class="">.</span><span class="">fps_base</span><span class="">),</span> <span class="">3</span><span class="">)</span></pre>
<br></div>Just in case, full code is <a href="https://github.com/szaszak/blender_velvets/blob/master/velvet_revolver.py">here</a>, addon is already functional.<br><br></div>thanks for the help!<br></div>