ubisoft / shotmanager

Shot Manager is a Blender add-on that introduces a true shot entity in Blender scenes, as well as a wide and powerful set of tools to build and edit sequences in real-time directly in the 3D context.
GNU General Public License v3.0
201 stars 29 forks source link

TypeError during render initialization (thus unable to Render shots) #23

Closed sgodanas closed 2 years ago

sgodanas commented 2 years ago

Infos on the context

Describe the bug Unable to render shots because of a TypeError

To Reproduce Steps to reproduce the behavior:

  1. Setup shots in a take.
  2. Click Render all shots.

Expected behavior All shots must be rendered

Screenshots

Screenshot 2022-03-16 143735

Additional context

FROM: https://wiki.blender.org/wiki/Reference/Release_Notes/3.1/Python_API

Python has been upgraded from version 3.9 to 3.10, there are some changes that may impact script authors.

    Python 3.10 no longer implicitly converts floats to int's ([issue linked](https://bugs.python.org/issue37999)). This means functions that previously accepted float typed values will raise a type error.
    Floating point arguments must now be explicitly converted to integers (see example commits ([rBAbb62f10]
(http://developer.blender.org/rBAbb62f10715a871d7069d2b2c74b2efc97c3c350c), [rBA7476c1a](http://developer.blender.org/rBA7476c1ac248472c1442b3fb1cb3e0a79747e48f6)).
werwack commented 2 years ago

Indeed it was a Python 3.10 issue. Thanks for the link. I saw it but didn't know where the conversion issue could appear. I fixed all those I found but there may have some others somewhere :S We will see over time...

sgodanas commented 2 years ago

Great, thank you!

werwack commented 2 years ago

Hi @sgodanas , This bug has also been fixed in v1.7.16. Let me know if you still face the issue. Thank you

sgodanas commented 2 years ago

Hi @werwack

That sounds great. I will start testing today and let you know.

Thank you! Satish.