Coder Social home page Coder Social logo

mdsanima-dev / mdsanima-render-time Goto Github PK

View Code? Open in Web Editor NEW
21.0 3.0 0.0 2.61 MB

Blender add-on estimates and calculate how long your animation will take to render done based on the rendering time of the only one frame

License: GNU General Public License v3.0

Python 100.00%
blender blender-addon blender3d blender-scripts blender-python blender-plugin blender-3d

mdsanima-render-time's Introduction

MDSANIMA RenderTime

The Blender add-on estimates and calculate how long your animation will take to render done based on the rendering time of the only one frame.

You will also find here useful rendering statistics as well as automations of various time-consuming activities and manny more useful features and tools.

Blender Add-on

The add-on is located in the View3D > UI area panel and show rendering time statistic. Automatically calculating rendering time for frame range based on your scene then shows date when rendering is done. The add-on also printing rendering statistic in System Console inside Blender terminal.

Developed on Python 3.10.4 and tested on Blender 3.1.2 and 2.93 LTS version. The add-on also works on older Blender versions as well but this is not recommended.

mdsanima-render-time-v0.1.1

How to Install

Installing the add-on is very simple process, just follow this instruction steps:

  • Go to release page on this repository and download the latest add-on version.
  • Open the Blender 3.1.2 in your system.
  • Then open the Preferences and select Add-ons on the right side.
  • Next click the Install button and select the add-on path on your hard drive where you previously downloaded the latest version.
  • Select the Community support level button to view the add-on in the list below in the next step.
  • On the search field type MDSANIMA RenderTime and then enable an add-on.

That's it, the add-on MDSANIMA RenderTime has been enabled. Now close the Preferences window the add-on will appear in 3D Viewport on the right context panel section. If you don't see this section, just use the N key shortcut in 3D Viewport area to open the right panel where our add-on is located.

Finally, we can meet together.

How to Use

Just click on the RENDER button to see the statistics. The button renders one frame of the animation and uses it to calculate how long your whole animation will take to render done. To refresh statistic, just hover the cursor in to the button RENDER, but don't click on it, then you will see the new date when the rendering will complete.

You can also use the quick F12 key shortcut to render a frame and then just hover the cursor over the render button to see the new statistics.

Development

Instruction for the Blender and Python add-ons or package development can from with my other repository but instruction for automate release is the some like here. Please check the mdsanima-dev Python package documentation site on GitHub Pages for more information about it.

Only to do with Blender and Python add-ons development you must install the fake-bpy-module for the code completion in Visual Studio Code just type in the terminal:

pip install fake-bpy-module-latest

Follow Me

These are my social media account, be sure to check it. Thanks!

github-followers-mdsanima twitter-follow-toudajew twitter-follow-str9led twitter-follow-mdsanima

subreddit-subscribers-mdsanima youtube-subscribers-mdsanima youtube-views-mdsanima twitch-status-mdsanima discord-chat-mdsanima

License

The Blender add-on MDSANIMA RenderTime developed by Marcin Różewski is released under the terms of GPL License.

mdsanima-render-time's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mdsanima-render-time's Issues

AST error parsing bl_info: ValueError malformed node or string

I get error when try to install addon on new release of Blender 2.93.2 LTS .

This is a error from Blender System Console:

AST error parsing bl_info for: 'C:\\Users\\me\\AppData\\Roaming\\Blender Foundation\\Blender\\2.93\\scripts\\addons\\mdsanima-render-time\\__init__.py'
Traceback (most recent call last):
  File "D:\blender_exe\blender_2_9\blender-2.93.2-windows-x64\2.93\scripts\modules\addon_utils.py", line 137, in fake_module
    mod.bl_info = ast.literal_eval(body.value)
  File "D:\blender_exe\blender_2_9\blender-2.93.2-windows-x64\2.93\python\lib\ast.py", line 105, in literal_eval
    return _convert(node_or_string)
  File "D:\blender_exe\blender_2_9\blender-2.93.2-windows-x64\2.93\python\lib\ast.py", line 94, in _convert
    return dict(zip(map(_convert, node.keys),
  File "D:\blender_exe\blender_2_9\blender-2.93.2-windows-x64\2.93\python\lib\ast.py", line 97, in _convert
    left = _convert_signed_num(node.left)
  File "D:\blender_exe\blender_2_9\blender-2.93.2-windows-x64\2.93\python\lib\ast.py", line 78, in _convert_signed_num
    return _convert_num(node)
  File "D:\blender_exe\blender_2_9\blender-2.93.2-windows-x64\2.93\python\lib\ast.py", line 69, in _convert_num
    _raise_malformed_node(node)
  File "D:\blender_exe\blender_2_9\blender-2.93.2-windows-x64\2.93\python\lib\ast.py", line 66, in _raise_malformed_node
    raise ValueError(f'malformed node or string: {node!r}')
ValueError: malformed node or string: <ast.BinOp object at 0x0000028A4F1EEE80>

Print render stats in console

This features 49b3cad printing render statistic in System Console window on Blender. Default this window is disabled.

Implemented in module core.mdsrt_timer and show stats when render is:

  • on initialization of a render job rt_init
  • on render (before) rt_start on core.mdsrt_timer
  • on completion of render job rt_complete on core.mdsrt_timer
  • on canceling a render job rt_cancel on core.mdsrt_timer

Reference Blender Python API

To enable this window, click on the header Window in the top of Blender, then select the last option Toggle System Console.

That's looks like now:
rt_stats_mdsanima-render-time

Unable to install in Blender 3.6

I get the same error that the person trying this on the Mac did:

Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\modules\addon_utils.py", line 333, in enable
    mod = __import__(module_name)
ModuleNotFoundError: No module named 'mdsanima-render-time-0'

I tried this with the name used in the latest download. I have tried renaming the zip to mdsanima-render-time.zip. I have tried renaming the zip to mdsanima-render-time-0.zip. In between attempts, I clicked "Remove" in Blender. In no case have I been able to install the add-on.

Activation error on Blender 3.2.2 / mac osx 11.6.8 (Big Sur)

Hello, I'm trying to install / activate your AddOn v.0.1.1 but I get the following error:

`Traceback` (most recent call last):
  File "/Applications/Blender.app/Contents/Resources/3.2/scripts/modules/addon_utils.py", line 335, in enable
    mod = __import__(module_name)
ModuleNotFoundError: No module named 'mdsanima-render-time-0'

Best regards,
Eric

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.