Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Send Python Code To C4D from any Texteditor

    General Talk
    python
    3
    7
    1.5k
    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.
    • mikeudinM
      mikeudin
      last edited by mikeudin

      Hello guys!
      I've created little solution to send python code to execute in Cinema 4D. Also it works for editing Pyton Generators, Effectors, Tags and Fields! Thanks for Remote Code Runner - Cinema 4D & Sublime Text plugin by NiklasRosenstein.

      pycharm_example.png

      Download SendPythonCodeToCinema4D

      Checkout my python tutorials, plugins, scripts, xpresso presets and more
      https://mikeudin.net

      1 Reply Last reply Reply Quote 2
      • M
        m_adam
        last edited by

        Nice one, thanks for providing it as open source 😉

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        1 Reply Last reply Reply Quote 1
        • M
          mdr74
          last edited by

          Hi,
          is it possible to update this fantastic tool for R23.
          I think it's broken due to new python 3.7 version, but I don't understand the socket module

          thanks

          mikeudinM 1 Reply Last reply Reply Quote 0
          • mikeudinM
            mikeudin @mdr74
            last edited by

            @mdr74 Done!
            Please download new version and let me know how it works.

            Checkout my python tutorials, plugins, scripts, xpresso presets and more
            https://mikeudin.net

            M 2 Replies Last reply Reply Quote 1
            • M
              mdr74 @mikeudin
              last edited by

              @mikeudin thanks

              1 Reply Last reply Reply Quote 0
              • M
                mdr74 @mikeudin
                last edited by

                @mikeudin I change this code in line 432 of SendPythonCodeToCinema4D.pyp

                str(code)
                

                with

                str(code, "utf-8")
                

                and also in lines 436, 440, 448

                the code returned to cinema4d was in byte format, not string.
                I'm not very good with python but it works for me

                mikeudinM 1 Reply Last reply Reply Quote 0
                • mikeudinM
                  mikeudin @mdr74
                  last edited by

                  @mdr74 OK, thank you! Will check it.

                  Checkout my python tutorials, plugins, scripts, xpresso presets and more
                  https://mikeudin.net

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