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

    Manipulate newly created Tag Properties

    PYTHON Development
    0
    3
    635
    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
      Helper
      last edited by

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

      On 09/03/2011 at 01:08, xxxxxxxx wrote:

      Hi everyone,

      another question rises

          myobject = c4d.BaseObject(c4d.Ocylinder)    #Allocate a new object   
          doc.InsertObject(myobject)                  #Insert the object into the documents object list   
          myobject.MakeTag(c4d.Tphong)   
          myobject[c4d.PHONGTAG_PHONG_ANGLELIMIT] = 1   
          myobject[c4d.PHONGTAG_PHONG_ANGLE] = 22   
          # BaseDocument.SetActiveTag(myobject)
      

      you can see at my code that i tried several stuff already but can't get it to work ...
      I want to set the atributes of the phong tag i created ...

      thanks in advance
      mogh

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

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

        On 09/03/2011 at 01:25, xxxxxxxx wrote:

        'myobject' is a cylinder.

        MakeTag() returns the new tag.

        mytag = myobject.MakeTag(c4d.Tphong)  
        mytag[c4d.PHONGTAG_PHONG_ANGLELIMIT] = 1
        
        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

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

          On 09/03/2011 at 01:51, xxxxxxxx wrote:

          thanks its working
          kind regards mogh

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