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
    • Recent
    • Tags
    • Users
    • Login

    Problem adding module tags in Python

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 194 Views
    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.
    • H Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 26/11/2010 at 07:25, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R12 
      Platform:   Windows  ;   
      Language(s) :       PYTHON  ;

      ---------
      Hi guys.

      I know how to add the usual phong, protect, vertex tags etc like this :

      doc = documents.GetActiveDocument()
      obj = doc.GetActiveObject()
      my_tag = c4d.BaseTag(c4d.Tphong)
      obj.InsertTag(my_tag)

      But whenever I try to add any of the Character tags, like Tcaik, I get an error 'Tcaik is not defined'.
      Same with hair tags etc

      So my question is how can add tags belonging to the modules ?

      Thanks.

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 27/11/2010 at 20:21, xxxxxxxx wrote:

        I got an answer, which I'm copying here, so that those who search for the same problem in future can find it.
        Thanks to sebastien for providing the info :

        Hi, are you looking for the tag with the ID 1019561? You can define the ID manually in the code:

        Tcaik = 1019561
        tag = c4d.BaseTag(Tcaik)

        How I got the ID? I created the tag manually in C4D and dragged it into the Py console.
        Calling IK.GetType() returned the ID of the tag which is 1019561.

        Cheers, Sebastian

        This method should work for all tags not defined in c4d.Basetag, so hair tags etc too.

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