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.
Post Reply
michalex19
Licensed Customer
Posts: 3
Joined: Sun Aug 02, 2020 10:10 pm

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!
Post Reply

Return to “Demo Version Questions & Discussion”