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

    ObjectInstance GetData() attribute id's

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 358 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 17/01/2007 at 08:49, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   9.6 
      Platform:      Mac OSX  ; 
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      Hello All
      How do I get the ObjectInstance object reference?
      I'm trying to get the reference object of an instance object with no success.

      var bc = cobj->GetContainer();
      var sourceName = bc->GetData(INSTANCEOBJECT_SOURCE);
      println("source object = ", sourceName );

      but always get nil

      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 17/01/2007 at 09:09, xxxxxxxx wrote:

        This should help you. Keep in mind you can drag description elements fromt the AM into the scripteditor to get the description IDs.

        var ref = op#INSTANCEOBJECT_LINK; //op is inszance object and ref is the reference object  
        println(ref->GetName());  
        

        cheers,
        Matthias

        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 17/01/2007 at 09:24, xxxxxxxx wrote:

          Thanks Matthias, problem solved!.

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