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

    AttributeError

    Scheduled Pinned Locked Moved PYTHON Development
    6 Posts 0 Posters 970 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 28/06/2011 at 15:09, xxxxxxxx wrote:

      Hi,
      I created an own Object with python and now i want to get a few attributes.
      how can I get these attributes?

      ID of the Attribute: [TP_GEOMETRY], so i tried this:
      > print TP[c4d.TP_GEOMETRY]

      but there is a attribute error:
      AttributeError: 'module' object has no attribute 'TP_GEOMETRY'

      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 28/06/2011 at 22:07, xxxxxxxx wrote:

        Why is TP your object ? (and are you sure it is written uppercase ? 😉
        the tp module is automatically loaded in the skript manager as well as tag an generator.

        Make sure you use the right variable, the one representing your object.

        op[c4d.TP_GEOMETRY]
        
        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 28/06/2011 at 22:23, xxxxxxxx wrote:

          TP_GEOMETRY is an attribute of an third-party-object which I created on my own (ObjectPlugin). so the attributed is not stored in the c4d-module.

          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 28/06/2011 at 22:55, xxxxxxxx wrote:

            If it shows up in your AM, then try trashing the "coffeesymbolcache" file
            found in your user pref folder and restart Cinema.

            Cheers
            Lennart

            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 28/06/2011 at 23:36, xxxxxxxx wrote:

              Ah, okay, thank you 🙂

              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 29/06/2011 at 03:51, xxxxxxxx wrote:

                Ah, lol I am sorry. Mixed sth up.

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