Hi Ferdinand,
thanks for the confirmation and looking into it.
While it's a bit unfortunate, I do not consider this a major road block. From my side this thread can be considered close.
Cheers
Hi,
Thank you so much for your suggestion. I changed my code to iterate each surface. It works very well. Thank you for your help, which solved my problem.
[image: 1623154713798-6ecf2fc3-56cc-4834-9632-0b815d3a5f39-image.png]
Thanks,
Manuel
Hello @Ogers,
without any further questions, we will consider this topic as solved by Monday, the 25th and flag it accordingly.
Thank you for your understanding,
Ferdinand
Hi!
Thanks for your input!
I just found the cause.
There is an os.kill call on the C4DPL_ENDPROGRAM message. If you leave it out some python stuff seems to keep running and preventing Cinema from being opened again. I am assuming that's why the original author did that.
I will just catch the dirty flag myself and deal with unsaved scenes before terminating the process. Unless you know a more elegant way.
I will mark this as solved.
Thanks again.
P.S.: This is off topic, but trying to reply I would always get an error and I had to log out and in again to post this.
EDIT: I found the elegant solution - Adding c4d.documents.CloseAllDocuments() before the process termination handles the save dialogs perfectly!
Hello Paula,
of course, I understand these restrictions, but on the other hand it is in this case hard to just guess the problem. Feel free to reopen this subject at any time.
Cheers,
Ferdinand
Hi @ferdinand
RE: Please note that this is not a commitment of us to do this regularly . .
I understand. Thanks for the detailed explanation and background theory for the answer.
Have a nice ahead!
Will close this thread now.
Hello @C4DS,
without any further questions, we will consider this topic as solved by Monday, the 25th and flag it accordingly.
Thank you for your understanding,
Ferdinand
Hello @fwilleke80,
without further questions or postings, we will consider this topic as solved by Wednesday and flag it accordingly.
Thank you for your understanding,
Ferdinand
Hello @AiMiDi,
without any further questions, we will consider this topic as solved by Monday and flag it accordingly.
Thank you for your understanding,
Ferdinand
This is for my own plugin. I was looking for a flag that I could set. Totally forgot about just checking for the parameter being set. Great solution. Thanks.