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. gunther102
    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).
    G
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Best 0
    • Controversial 0
    • Groups 0

    gunther102

    @gunther102

    0
    Reputation
    5
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    gunther102 Unfollow Follow

    Latest posts made by gunther102

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

      (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()
      
      posted in Cinema 4D SDK r21 python
      G
      gunther102