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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Print to Console for the Python Node in the Expresso Editor?

    Cinema 4D SDK
    r20 python
    2
    4
    648
    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.
    • B
      bentraje
      last edited by

      Hi,

      I understand that the Python Node cannot access the objects in the document. So the doc.SearchObject in the Python node has no effect. Correct me if I'm wrong.

      But is it possible, to have a print function that prints to console for the Python Node?
      Currently, I have to use several output ports and several result nodes to debug the program instead of just a handful of print lines.

      Is there a way around this?

      Thank you for looking at my problem.

      1 Reply Last reply Reply Quote 0
      • B
        bentraje
        last edited by

        Thanks @jed for the answer.

        Basically, the doc.SearchObject() and print command works. I just need to remove the unused Output nodes, which is the Output1 for the newly created Python node.

        1 Reply Last reply Reply Quote 0
        • S
          s_bach
          last edited by

          Hello,

          short addition: It is possible to "read" document properties from a Python Node. But one should not edit the document directly from a Python Node.

          best wishes,
          Sebastian

          MAXON SDK Specialist

          Development Blog, MAXON Registered Developer

          1 Reply Last reply Reply Quote 1
          • B
            bentraje
            last edited by

            Gotcha. Thanks for the reminder!

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