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. karpique
    3. Topics
    K
    • Profile
    • Following 0
    • Followers 0
    • Topics 6
    • Posts 15
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by karpique

    • K

      Make Python Generator update on User Data change

      Cinema 4D SDK
      • 2024 2025 python • • karpique
      3
      0
      Votes
      3
      Posts
      612
      Views

      K

      Thansk so much for the video, that was a deep dive! For my issue, I resolved it like this:

      def message(id, data): if(id==c4d.MSG_DESCRIPTION_POSTSETPARAMETER): userDataID = eval(str(data['descid']))[1][0] if userDataID in [2, 4, 5]: c4d.CallButton(op, c4d.OPYTHON_MAKEDIRTY)

      so, if any user data touched (including fieldlist), the generator updates itself.

    • K

      Set Ngons with Python

      Cinema 4D SDK
      • • • karpique
      7
      0
      Votes
      7
      Posts
      1.3k
      Views

      ferdinandF

      Hi,

      I am back at work now, if any questions remain, please feel free to ask them.

      Cheers,
      Ferdinand

    • K

      Check C4D version for using Fields

      Cinema 4D SDK
      • python • • karpique
      2
      0
      Votes
      2
      Posts
      378
      Views

      ManuelM

      Hi,

      Please use the tags and the "ask question" features of the forum. Have a look at our guidelines for more information.

      That's the correct way of checking the Cinema 4D's version.

      Cheers,
      Manuel

    • K

      Select custom tab with python

      Cinema 4D SDK
      • • • karpique
      8
      0
      Votes
      8
      Posts
      1.3k
      Views

      jochemdkJ

      Below gets the focus back on the first tab of the pyTag (after other objects have been selected), but it only works with/after a button click..
      Perhaps this might be of use.

      def message(id, data): if id == c4d.MSG_DESCRIPTION_COMMAND: id2 = data['id'][0].id if id2 == c4d.ID_USERDATA: userDataId = data['id'][1].id if userDataId == 1: # << just a button on the pyTag with ID 1 ### do some function... # GET FOCUS BACK on the pyTags's 1st Tab: op.GetObject().SetBit(c4d.BIT_ACTIVE) op.SetBit(c4d.BIT_ACTIVE) c4d.gui.ActiveObjectManager_SetObject(c4d.ACTIVEOBJECTMODE_TAG, op.GetObject(), c4d.ACTIVEOBJECTMANAGER_SETOBJECTS_OPEN, c4d.DescID(c4d.DescLevel(1))) op.GetObject().DelBit(c4d.BIT_ACTIVE) c4d.EventAdd()
    • K

      Is it possible to resize a c4d.VariableTag?

      Cinema 4D SDK
      • python • • karpique
      6
      0
      Votes
      6
      Posts
      1.1k
      Views

      ferdinandF

      Hello @karpique,

      without any further questions, we will consider this topic as solved by Monday and flag it accordingly.

      Thank you for your understanding,
      Ferdinand

    • K

      Copy mesh from one object to another with Python

      Cinema 4D SDK
      • • • karpique
      9
      0
      Votes
      9
      Posts
      1.8k
      Views

      K

      @ferdinand I get Ngon translation map and applied MCOMMAND_MELT but stuck again — as I understand SendModellingCommand only returns new object with melted ngons, but my goal is to correct object that already exists in scene...

      Is there any other ways of setting up Ngon translation map with python?