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

    active Objects SELECTIONORDER

    PYTHON Development
    0
    2
    416
    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

      On 08/06/2013 at 04:20, xxxxxxxx wrote:

      Hi

      I try to create objects with inexcludelist to save selection of objects

      I try to active object by

      doc = c4d.documents.GetActiveDocument()
      				imax = node[c4d.FG_Fixtures].GetObjectCount()
      				i=0
      				c4d.CallCommand(100004767)
      				while (i < imax) :
      					op = node[c4d.FG_Fixtures].ObjectFromIndex(doc, i)
      					doc.SetActiveObject(op, mode=c4d.SELECTION_ADD)
      					c4d.EventAdd()
      					i=i+1
      

      but when i grap the active objects by

      	allactivefixtures = doc.GetActiveObjects(c4d.GETACTIVEOBJECTFLAGS_SELECTIONORDER)
      

      the order of active Objects is not the same

      has one an idea ?

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

        On 08/06/2013 at 04:37, xxxxxxxx wrote:

        I have never used that special flag yet, but if you just want to retrieve the order of the
        Objects in your InExlcude list, why don't you store that order in a class reference and
        just select the objects as a visual clarification for the user if needed.
        _
        _

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