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 Effector Unique ID

    Scheduled Pinned Locked Moved PYTHON Development
    1 Posts 0 Posters 181 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 22/01/2012 at 03:34, xxxxxxxx wrote:

      Starting from the cloner 
      I can pick up the effector list, then object, name and type

      If I have two effectors of the same type, with the same name

      how do I tell them apart
      and access that unique data

      (yes - this only picks the first effector in the list - will iterate later)
      pls

          obj_0 = op[c4d.ID_USERDATA, 7]    
       
          ef = obj_0[c4d.ID_MG_MOTIONGENERATOR_EFFECTORLIST].ObjectFromIndex(doc, 0)
          efname = obj_0[c4d.ID_MG_MOTIONGENERATOR_EFFECTORLIST].ObjectFromIndex(doc, 0).GetName()
          eftype = obj_0[c4d.ID_MG_MOTIONGENERATOR_EFFECTORLIST].ObjectFromIndex(doc, 0).GetType()
       
        
      
      

      or do I get the Effector Object in the OM
      and compare that against the returned parameter ef? to see if they match

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