Blender Python code to change current preview pass

Forums: Blender Python code to change current preview pass
A public forum for discussing and asking questions about the demo version of Octane Render.
Forum rules
For new users: this forum is moderated. Your first post will appear only after it has been reviewed by a moderator, so it will not show up immediately.
This is necessary to avoid this forum being flooded by spam.

Blender Python code to change current preview pass

Postby michalex19 » Tue Apr 06, 2021 1:15 am

michalex19 Tue Apr 06, 2021 1:15 am
Hello,

I make the addon AP Octane, and I'm trying to set up something for denoising.

When I manually change the preview pass to denoiser beauty, the info box prints the code

bpy.context.scene.current_preview_pass_type = '43'


But when I try that in the console or through a script it says:

AttributeError: 'Scene' object has no attribute 'current_preview_pass_type'

I have dug a bit trying to figure out how to access this through python, but cannot figure it out, can someone let me know how to do this please? This will help hundreds of users who use AP Octane in their workflow.

Thanks in advance!
michalex19
 
Posts: 2
Joined: Sun Aug 02, 2020 10:10 pm

Return to Demo Version Questions & Discussion


Who is online

Users browsing this forum: No registered users and 13 guests

Wed Apr 24, 2024 6:13 am [ UTC ]