Save Project File in Render Settings
On 23/03/2015 at 12:29, xxxxxxxx wrote:
Is there a way to have the "Save Project File..." button not show me the dialog? Or, if that's not possible, be able to store that saved file in a variable?
Currently I'm doing the following, which always brings up the dialog.
doc = c4d.documents.GetActiveDocument() rdata = doc.GetActiveRenderData() c4d.CallButton( rdata, c4d.RDATA_PROJECTFILESAVE )
I couldn't find any arguments like dialogsAllowed.
I've also tried the following:
output = c4d.CallButton( rdata, c4d.RDATA_PROJECTFILESAVE ) print output
but that will always give me an result of None.
On 24/03/2015 at 07:43, xxxxxxxx wrote:
with CallButton() you can do just that: you can press a button. But you cannot change what this button does. In this case the "Save Project File..." button will open a file dialog, no matter what; there is no way of changing that behavior. Also, CallButton() will just press the button, but it will not handle any results of any action this button may do so the return value is None.
The functionality of "Save Project File..." is not exposed in the API I'm afraid there is no other way of handling this.
On 24/03/2015 at 11:43, xxxxxxxx wrote:
Bah, that's what I was afraid of since I couldn't find anything else in the documentation..
Thank you for checking up on that.