Set Use As Render View
-
How can I set or check the 'use as render view' setting in python?
I couldn't find a bit to set ect. The only thing I can find is the 'CallCommand()' ID which I can't use.Right now, I am trying to figure out where this setting is set. I am guessing it might be the document, but there is only an option to GetRenderBaseDraw() but I can't find a function to 'Set' it.
It would be awesome if you could point me in the direction.
Thank you! -
hello,
For your next threads, please help us keeping things organised and clean.
- Q&A New Functionality.
- How to Post Questions especially the tagging part.
I've added the tags and marked this thread as a question so when you considered it as solved, please change the state
There's no function to set the viewport used for rendering.
Why can't you use
CallCommand
? (even if in this case the command is the same what ever the active viewport is)you can change it in the
BaseContainer
of the document. The symbol is not exposed so you have to use the ID itself.#DOCUMENT_RVIEW 10001 bc = doc.GetDataInstance() print bc[10001] bc[10001] = 1
Cheers,
Manuel -
Thank you Manuel, that works perfectly.
I can use CallCommand() but I don't want to as it will always call c4d.EventAdd() and as I can't specify which bd to set as the renderview. I tend to not use CallCommand() in a plugin as it is only be able to be called in the main thread (which would be fine in this case) and as it seems to 'simulate' user interaction.