Blender Kitsu: doesn't show render preset options #100

Closed
opened 2023-06-29 14:12:02 +02:00 by johan tri handoyo · 2 comments

Although I already set the render preset folder correctly Kitsu failed to show the render preset options.

image

I use the render presets in the attachment.

Although I already set the render preset folder correctly Kitsu failed to show the render preset options. ![image](/attachments/bfc70ead-cb1b-4e06-aea4-8a52d1fd6fb5) I use the render presets in the attachment.
Nick Alberelli changed title from Kitsu doesn't show render preset options to Blender Kitsu: doesn't show render preset options 2023-06-29 14:48:37 +02:00
Nick Alberelli added the
Kind: Community
label 2023-07-13 20:25:55 +02:00
Member

Hello @JohanTriHandoyo

Assuming you have the correct directory set in your preferences you will need to check your System Console. You will likely see a message similar to:

  File "C:/Users/user/Blender-Studio/project/pro/lib/scripts/render_presets/render_presets.py", line 56, in <module>
    main()
  File "C:/Users/user/Blender-Studio/project/pro/lib/scripts/render_presets/render_presets.py", line 24, in main
    bpy.context.scene.view_layers["ViewLayer"].use_pass_cryptomatte_object = True     
KeyError: 'bpy_prop_collection[key]: key "ViewLayer" not found'

This is because your .blend file doesn't have keys that match your render preset. I discovered this issue when testing the render_preset.py you attached. The offending lines are:

bpy.context.scene.view_layers["ViewLayer"].use_pass_cryptomatte_object = True
bpy.context.scene.view_layers["ViewLayer"].use_pass_cryptomatte_material = True
bpy.context.scene.view_layers["ViewLayer"].use_pass_cryptomatte_asset = True

Once you comment these lines out, or replace the key ViewLayer with the name of the viewlayer in your .blend file the render presets will appear.

Please let me know if this resolves your issue.

Hello @JohanTriHandoyo Assuming you have the correct directory set in your preferences you will need to check your System Console. You will likely see a message similar to: ```bash File "C:/Users/user/Blender-Studio/project/pro/lib/scripts/render_presets/render_presets.py", line 56, in <module> main() File "C:/Users/user/Blender-Studio/project/pro/lib/scripts/render_presets/render_presets.py", line 24, in main bpy.context.scene.view_layers["ViewLayer"].use_pass_cryptomatte_object = True KeyError: 'bpy_prop_collection[key]: key "ViewLayer" not found' ``` This is because your .blend file doesn't have keys that match your render preset. I discovered this issue when testing the render_preset.py you attached. The offending lines are: ```python bpy.context.scene.view_layers["ViewLayer"].use_pass_cryptomatte_object = True bpy.context.scene.view_layers["ViewLayer"].use_pass_cryptomatte_material = True bpy.context.scene.view_layers["ViewLayer"].use_pass_cryptomatte_asset = True ``` Once you comment these lines out, or replace the key `ViewLayer` with the name of the viewlayer in your .blend file the render presets will appear. Please let me know if this resolves your issue.
Nick Alberelli added the
Status
Need More Info
label 2023-07-13 21:17:36 +02:00
Member

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed.

Thanks again for the report. If the problem persists please open a new report with the required information.

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed. Thanks again for the report. If the problem persists please open a new report with the required information.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: studio/blender-studio-tools#100
No description provided.