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
    The forum rollback caused push notifications and recent user data to malfunction. The problem will fix itself naturally within the next days. See the topic Broken Push Notifications for a more in detail explanation. You can fix this yourself by forcibly clearing your browser cache (for most browsers: CTRL + F5).

    python script, is "add to hud" possible to add to my python script?

    Cinema 4D SDK
    r21 python
    3
    3
    610
    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.
    • G
      gunther102
      last edited by m_adam

      (novice at scripting)

      whenever i right click on a parameter of almost anything in the attribute manager i have the option to "add to hud"
      is it possible to script "add to Hud" for a parameter?

      Example script to create a cube

      import c4d
      
      def main():
          # Create a new cube object
          cube = c4d.BaseObject(c4d.Ocube)
      
          # Set the cube's size
          cube[c4d.PRIM_CUBE_LEN] = c4d.Vector(100, 200, 300)
          
          # Set the cube's segmentation
          cube[c4d.PRIM_CUBE_SUBX] = 1
          cube[c4d.PRIM_CUBE_SUBY] = 2
          cube[c4d.PRIM_CUBE_SUBZ] = 3
          
          cube[c4d.PRIM_CUBE_SEP] = 0
          
          cube[c4d.PRIM_CUBE_DOFILLET] = 1
          cube[c4d.PRIM_CUBE_FRAD] = 4
          
          cube[c4d.PRIM_CUBE_DOFILLET] = 1
          Cube[c4d.PRIM_CUBE_SUBF] = 2
          
          
          # Insert the cube into the document
          doc.InsertObject(cube)
      
          # Update the document
          c4d.EventAdd()
      
      if __name__=='__main__':
          main()
      
      ferdinandF 1 Reply Last reply Reply Quote 0
      • ferdinandF
        ferdinand @gunther102
        last edited by

        Hello @gunther102,

        Welcome to the Plugin Café forum and the Cinema 4D development community, it is great to have you with us!

        Getting Started

        Before creating your next postings, we would recommend making yourself accustomed with our Forum and Support Guidelines, as they line out details about the Maxon SDK Group support procedures. Of special importance are:

        • Support Procedures: Scope of Support: Lines out the things we will do and what we will not do.
        • Support Procedures: Confidential Data: Most questions should be accompanied by code but code cannot always be shared publicly. This section explains how to share code confidentially with Maxon.
        • Forum Structure and Features: Lines out how the forum works.
        • Structure of a Question: Lines out how to ask a good technical question. It is not mandatory to follow this exactly, but you follow the idea of keeping things short and mentioning your primary question in a clear manner.

        About your First Question

        The answer is here, unfortunately, that this is not possible.

        Cheers,
        Ferdinand

        MAXON SDK Specialist
        developers.maxon.net

        1 Reply Last reply Reply Quote 1
        • T
          thomas
          last edited by

          would love to see that being added. the HUD is amazing for internal tooling

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