Message 1 of 1
Playblast through arnoldRenderView with Python
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello. I'm trying to use new Arnold Viewport functionality in my project and have some issues in Playblast script creation. I wanna to create movie with my model spining around in Wireframe Debug Shading. I use this commands:
# Set Renderer as Arnold
mel.eval("setRendererAndOverrideInModelPanel vp2Renderer arnoldViewOverride modelPanel4;")
# Update Scene for the Correct View
cmds.arnoldRenderView(opt=['Update Full Scene', '1'])
# Switch to Debug Wireframe
cmds.arnoldRenderView(opt=['Debug Shading', 'Wireframe'])
# Enable IPR
cmds.arnoldRenderView(opt=['Run IPR', '1'])
If I execute this commands separately - everything works. But if I run all this code at once the result would be unexpectable. Some of the options might not change. Try to evaluate it through evalDeferred - no matter. Maybe Arnold have some callback about successful command completion. Thanks for the help