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

    BaseSelect.GetAll(), max ?

    PYTHON Development
    0
    2
    362
    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 27/06/2011 at 04:59, xxxxxxxx wrote:

      Hy there,

      when I tried to use the GetAll() method, it told me its missing a "max" value. This is not in the documentation.

      My question is now, how do I set a meaningful value and why do I have to set one in the first place?

      If I call that method, I just want a list of all the flags indicating which indexes are set in the selection. So why a maximum? The maximum is always exactly the amount of edges/points/polygons of the BaseSelect of my object.

      But as I can't read out an edge count, I somehow have to calculate it, which seems non-trivial (no single call). Is that really necessary ?

      Cheers,
      maxx

      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 27/06/2011 at 12:50, xxxxxxxx wrote:

        The maximum is always exactly the amount of edges/points/polygons of the BaseSelect of my object.

        Yes, the max value is the corresponding value of the max count. To get the edgecount take a look at the neighbor class.

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