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
    1. Maxon Developers Forum
    2. ivodow
    3. Best
    I
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 13
    • Best 1
    • Controversial 0
    • Groups 0

    Best posts made by ivodow

    • RE: Write to C4D console in real time

      An answer to my initial question, for others who may encounter the same issue. This can be used in lieu of print()

      import maxon
      
      def ConsolePrint( *args ):
          # concatenate var args into a single, space separated string suitable for maxon.Loggers
          txt = " ".join(str(i) for i in args)
          maxon.Loggers.Python().Write( maxon.TARGETAUDIENCE.ALL, txt, maxon.MAXON_SOURCE_LOCATION(1), maxon.WRITEMETA.UI_SYNC_DRAW )
      
      if __name__ == "__main__":
      
         ConsolePrint( "Output" )
      
      posted in Cinema 4D SDK
      I
      ivodow