-
Notifications
You must be signed in to change notification settings - Fork 12
Support Blender 5.0+ #204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Support Blender 5.0+ #204
Conversation
…ds compatible to 4.0)
…ble, instead log warning
…ow because Blender 5.0 now supports OCIO
client/ayon_blender/plugins/publish/validate_render_output_paths.py
Outdated
Show resolved
Hide resolved
Couldn't load user scripts "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\5.0\scripts"
Traceback (most recent call last):
File "F:\dev\ayon-blender\client\ayon_blender\api\lib.py", line 141, in append_user_scripts
load_scripts(user_scripts.split(os.pathsep))
File "F:\dev\ayon-blender\client\ayon_blender\api\lib.py", line 30, in load_scripts
import bpy_types
ModuleNotFoundError: No module named 'bpy_types'I do still get this at startup in Blender 5.0 - but I'm not sure what we want to do there. I'm a bit at loss why we are still in need to even manage Blender's users scripts paths, etc. Does anyone remember? @LiborBatek @moonyuet @antirotor perhaps? |
I guess it has gone as I can't even search
|
Well, I know how I can avoid the issue by removing the troubling code. My question mostly is, why is the code there, what did it try to solve? And if I do remove it, what does that mean that I should be fixing instead? But I suppose I could completely bypass the Like, why can't we rely on Blender just loading user scripts? 🗡️ |
|
Ayon menu is integrated, for now I only tested workfiles area. Found this in the process monitor: |
|
Thanks @MilaKudr - that error there is indeed the above ongoing conversation I had with Kayla. I'll need to look into a suitable 'fix' still. Will let you know when it's there. |
Co-authored-by: Kayla Man <64118225+moonyuet@users.noreply.github.com>
|
I've tested publishing of workfile, rig and model. More advanced stuff is waiting for @LiborBatek. |
|
So, does this need more attention? I guess @LiborBatek was testing it? |
|
@iLLiCiTiT yes indeed still need refactoring , publishing works and the rest of tools also ... but I will report more specificaly on rendering issues soon...sry been off for a while |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall Blender 5.0 and Ayon integration works with all product types
all been tested and also Managing tools.
However rendering has issues due to changes in this blender version.
Here is compositor with tree in blender 4.5.3
Note correctly connected Composite node out into File Output Node used for rendering.
while in blender 5.0 it completely lacks Compositor node and using Group Out node instead so our Ayon integration fail connecting such input into File Output Node marked by red:
However it seems that its working also with multiple ViewLayers aka render layers but just not with compositor out which is still unconnected.
And lastly I had issues with rendered frames which are empty and has no any AOVs...but that could also be my legacy scene configuration and need to be revisited more...
It also seems that even the File Output Node of new version changed too...
….com/BigRoy/ayon-blender into 203-yn-0246-blender-50-compatibility
|
@LiborBatek I've disabled the "Composite" option in Blender 5.0 because it does not have a "Composite" node. Was there still anything else? |
I will give it another testing round and see if Im able to produce "working" aka correct rendered images...and let you know! |
|
@LiborBatek you didn't have any additional feedback yet, right? Still need to test? |
|
@BigRoy well I suppose rendering changes need to be first introduced, no? the rest of toolset working ok. or? |
The way I understood the real issue was with the Composite node - that should be solved since: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Im now getting error while trying to create Render publish instance (with 'Create Render Setup` enabled btw)
Traceback (most recent call last):
File "C:\Users\lbate\AppData\Local\Ynput\AYON\addons\core_1.6.13\ayon_core\pipeline\create\context.py", line 2314, in _create_with_unified_error
result = creator.create(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\lbate\AppData\Local\Ynput\AYON\addons\blender_1.0.12+dev\ayon_blender\plugins\create\create_render.py", line 77, in create
node = render_lib.prepare_rendering(variant_name=variant)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\lbate\AppData\Local\Ynput\AYON\addons\blender_1.0.12+dev\ayon_blender\api\render_lib.py", line 439, in prepare_rendering
set_render_format(ext, multilayer)
File "C:\Users\lbate\AppData\Local\Ynput\AYON\addons\blender_1.0.12+dev\ayon_blender\api\render_lib.py", line 62, in set_render_format
image_settings.file_format = (
^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: bpy_struct: item.attr = val: enum "OPEN_EXR_MULTILAYER" not found in ('JPEG', 'OPEN_EXR', 'PNG', 'WEBP', 'BMP', 'CINEON', 'DPX', 'IRIS', 'JPEG2000', 'HDR', 'TARGA', 'TARGA_RAW', 'TIFF')
its weird but by default the Compositor does not have any Input Scene aka Render Layers node...
so its mostly due to this
|
Once manually configured composting tree with output node for rendering (as now Ayon integration fails to do so) it can be published to DL for rendering... however more issues arises as the rendered images ends up in wrong folders etc. I rather provide all logs possible (publish log from blender host, DL finnished rendered batch log and metadata.json) ....it seems a lot have changed from B3d-5-publish-report-251219-16-15.json.txt DL-Render-Job_2025-12-19_16-17-33_69456c8d2d345570ad1214df.txt renderLightingFileOutput_metadata.json.txt And couple of scrnshots of my out dir (staging work render directory with some renders in wrong place)
And lastly my comp tree for your awarness...
|
That in your render logs doesn't seem too optimal. Unrelated?
@LiborBatek can you share the logs of the Publish job in Deadline? Did it try to run once? If so, can you get me the log of the first run? I have a vague feeling it did end up publishing, but errored due to something else... so the files in the v003 render folder got removed but job still failed due to something else? If that's not the case and it is actually rendering to the wrong folder - can you pass me that workfile? This I seem to have a hard time reproducing. The rest preparing render setup I've now fixed. |
|
I did try it again...so here are the logs... btw the Publish DL job even do not start due to expected fies aka asset dependencies as those files arent present (as they ended up in different folder location) DL-Job_2025-12-23_12-24-25_694a7be9635b18e67e87a276.txt renderLightingMain_metadata.json.txt There is also issue when hitting Auto create render setup that it keeps the inputs of the file output node in default state Here is a staging folder with files rendered into root instead of
also these having zero size /been blank, however the renders in the
and lastly the asset dependencies on
|











Changelog Description
Add support for Blender 5.0
Additional review information
For reference, see: https://developer.blender.org/docs/release_notes/5.0/python_api
bpy.context.scene.compositing_node_groupnowCompositorNodeOutputFilesince API changes.Fix: #203
Fix: #201
Testing notes: