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

    Plugin Tag printing randomly to the console

    Bugs
    python
    2
    4
    932
    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.
    • aghiad322A
      aghiad322
      last edited by

      hi there, i'm working on a tag plugin and whenever i add it to the scene the console start printing random letters , in this case it's printing "(null)" but sometimes it prints out completely random letters and symbols

      c4d_Plugin printing to console issue.png

      ferdinandF 1 Reply Last reply Reply Quote 0
      • ferdinandF
        ferdinand @aghiad322
        last edited by ferdinand

        Hello @aghiad322,

        Thank you for reaching out to us. I would recommend having a look at our Forum Guildelines. Relevant points for this and prior threads of yours are:

        • Questions should always contain the relevant and minimized code.
        • We cannot debug applications for users.
        • Do not post code as screenshots.

        About your Question

        This looks very much like your implementation is not conforming to the return signature of one of its methods. You probably have an often called method like NodeData.Message (given how frequent the error is) in there where one of the paths of that method returns None instead of bool. You likely forgot the return statement altogether in that path, then returning an implicit None. Note that Message is just an example, not the only option.

        Please understand that it is out of scope of support for us to find such "slips/accidents" in the code of users. Users must produce well-formed code on their own.

        Cheers,
        Ferdinand

        MAXON SDK Specialist
        developers.maxon.net

        aghiad322A 1 Reply Last reply Reply Quote 1
        • aghiad322A
          aghiad322 @ferdinand
          last edited by

          @ferdinand thanks a lot , the problem was in the "message()" function, it didn't return anything.
          sorry for the inconvenience of my previous questions.

          ferdinandF 1 Reply Last reply Reply Quote 0
          • maxonM maxon moved this topic from Cinema 4D SDK on
          • ferdinandF
            ferdinand @aghiad322
            last edited by ferdinand

            Hey @aghiad322,

            Great to hear that you solved your problem. And although I understand how you meant your last sentence, the questions of users are never inconvenient to us. All questions are welcome, but sometimes we must draw some boundaries for the scope of support.

            Cheers,
            Ferdinand

            MAXON SDK Specialist
            developers.maxon.net

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