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

    json.dumps truncated in R23 Console

    Cinema 4D SDK
    python r23
    2
    7
    730
    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.
    • ?
      A Former User
      last edited by A Former User

      Hello,
      I'm trying to solve some issues in my plugin's JSON data but when I print the data to the Console it is truncated with an ellipsis ...

      print((json.dumps(data, indent=4, sort_keys=True)))
      

      This is not the case in S22. How can I restore the full verbose print functionality? Thank you!

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

        This is a know limitation, I will confirm you the buffer size on monday, but the best way would be to print multiple time.

        Cheers,
        Maxime.

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

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

          The maximum length of a line can be is about 1024 characters.
          So if you want to print and see something bigger than 1024 characters your need to first splits the line and do multiple outputs.

          Cheers,
          Maxime.

          MAXON SDK Specialist

          Development Blog, MAXON Registered Developer

          ? 1 Reply Last reply Reply Quote 0
          • ?
            A Former User @m_adam
            last edited by

            @m_adam Thanks for the reply. For what it's worth, I liked it a lot better before where you could print all of your data without having to code around its structure.

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

              Sorry for the late reply, a bug report was created and it will be looked at.

              Cheers,
              Maxime.

              MAXON SDK Specialist

              Development Blog, MAXON Registered Developer

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

                Hi with latest update R24 SP1 the maximum character count per print was extended to 120000.
                If you want to display more characters, either do multiple print statement or output the string to a file (previously the file output was also shrinked, this is not anymore the case).

                Cheers,
                Maxime.

                MAXON SDK Specialist

                Development Blog, MAXON Registered Developer

                1 Reply Last reply Reply Quote 0
                • ?
                  A Former User
                  last edited by

                  Excellent, thank you for following up, @m_adam !

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