restart Cinema 4D by Python ? [SOLVED]



  • On 02/11/2014 at 01:28, xxxxxxxx wrote:

    Hey i wrote an plugin updater - but need to restart cinema 4d to get all changes - is there a way in python ?

    Thanks



  • On 02/11/2014 at 10:09, xxxxxxxx wrote:

    Take a look at my post about doing something similar here.

    -Shawn



  • On 03/11/2014 at 01:41, xxxxxxxx wrote:

    Hello,

    do you want to restart Cinema from within Cinema or from an external script (as Shawn described)?

    Best wishes,
    Sebastian



  • On 03/11/2014 at 01:51, xxxxxxxx wrote:

    I like to restart cinema within Cinema



  • On 03/11/2014 at 06:59, xxxxxxxx wrote:

    You can then use the CallCommand:

    c4d.CallCommand(12104) # Quit
    

    However this will not restart Cinema. The only way to do this (Inside of Cinema) is using C++ with RestartApplication()

    -Shawn



  • On 04/11/2014 at 08:36, xxxxxxxx wrote:

    Hello,

    you can c4d.RestartMe() to restart Cinema from Python. This function is not yet listed in the documentation as there may be rare cases where it can cause a crash.

    best wishes,
    Sebastian



  • On 04/11/2014 at 10:36, xxxxxxxx wrote:

    Good to know!

    Thanks Sebastian.



  • On 06/11/2014 at 06:23, xxxxxxxx wrote:

    Cool to know, works all the way down to R12.
    Should be good to have known then (for updating plugins) :)

    Cheers
    Lennart



  • On 14/11/2014 at 01:11, xxxxxxxx wrote:

    There is a issue with that ? Cinema r16 restart after a while but open a new icon in the dock . It's s the same R16 Version but with a new icon



  • On 14/11/2014 at 07:18, xxxxxxxx wrote:

    Hello,

    thanks for reporting this. I can confirm the issue, a bug report was filed.

    Best wishes,
    Sebastian


Log in to reply