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

    Getting the names of container items

    Scheduled Pinned Locked Moved PYTHON Development
    5 Posts 0 Posters 370 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 16/09/2012 at 03:57, xxxxxxxx wrote:

      Can get the values of all the items in a container with the code:

      bc=op.GetData()
          for id,item in enumerate(bc) :
              print id,item

      And I can even get the type of data with item.GetType()

      But I would like to get access to the names of the items. For instance, in the container of a Cube object, the item with ID 1105 (the second item in the container) is the "Fillet Radius". But that same ID (1105) can be used in other objects. So, how can I get the name of the items used in the dialogs?

      Rui Batista

      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 16/09/2012 at 04:02, xxxxxxxx wrote:

        This would be possible using the C++ Description class. I don't think it is (easily) possible in Python, unless the description library is implemented.

        -Nik

        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 16/09/2012 at 04:33, xxxxxxxx wrote:

          Thank you Niklas.
          From what I see, python can do much more than coffee but it still has a long way to go, either 😞

          Rui Batista

          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 16/09/2012 at 06:59, xxxxxxxx wrote:

            it' bad ... userdata has attribute - bc[c4d.DESC_NAME]
            does possible such schema:
            by finding of procedural object-plugin and point to res by class c4d.plugins. GeResource

            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 16/09/2012 at 07:02, xxxxxxxx wrote:

              Unfortunately, that is not a general solution 😞
              Will the description library ever be implemented?

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