Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    restart Cinema 4D by Python ? [SOLVED]

    Scheduled Pinned Locked Moved PYTHON Development
    10 Posts 0 Posters 923 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

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

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

        -Shawn

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

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

            I like to restart cinema within Cinema

            1 Reply Last reply Reply Quote 0
            • H Offline
              Helper
              last edited by

              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

              1 Reply Last reply Reply Quote 0
              • H Offline
                Helper
                last edited by

                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

                1 Reply Last reply Reply Quote 0
                • H Offline
                  Helper
                  last edited by

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

                  Good to know!

                  Thanks Sebastian.

                  1 Reply Last reply Reply Quote 0
                  • H Offline
                    Helper
                    last edited by

                    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

                    1 Reply Last reply Reply Quote 0
                    • H Offline
                      Helper
                      last edited by

                      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

                      1 Reply Last reply Reply Quote 0
                      • H Offline
                        Helper
                        last edited by

                        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

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post