Hey guys,
This is probably a very simple question and i suspect to do with threading. I have a little workflow tool i'm working on and have this Render to Picture Viewer button.
The code behind this button is as simple as this
if id == BTN_SceneRenderPictureViewer:
self.PrintStatusMessage('Rendering to Picture Viewer.')
self.Close()
c4d.StopAllThreads()
time.sleep(0.1) # Wait a bit to ensure the dialog is closed before rendering
c4d.CallCommand(12099)
However this causes Cinema to crash. I've tried recreating the Render to Picture viewer function but this was seems much simpler so would be great for it work - any help appreaciated
Thanks alot,
Will