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

    Is object in a link somewhere?

    SDK Help
    0
    5
    453
    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 17/01/2008 at 09:55, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   9.1+ 
      Platform:   Windows  ; Mac  ;  Mac OSX  ; 
      Language(s) :     C++  ;

      ---------
      Howdy,

      To explain, I want to select an object and then find out if there are any tags in the document that have the selected object in a BaseLInk AM description. Is that at all possible?

      I did a search using "link" but found nothing specifically related to what I wanted to do. :o(

      Adios,
      Cactus Dan

      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 17/01/2008 at 10:12, xxxxxxxx wrote:

        I don't think this will be completely possible (if I get the gist of 'why' you want to do this - something about deletion perhaps?).

        You can get at the links of tag parameters one way or another, but only through their BaseContainer or Descriptions - which will vary from tag to tag. But then you may not be able to get to plugin tags similarly unless you have the plugin ID and the res file both (for the good plugin devs like us this should be possible). 😉

        Remember that when an object is removed from the document, the links should just return NULL. As long as checks are in place, everything should chug along as normal.

        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 17/01/2008 at 10:26, xxxxxxxx wrote:

          Howdy,

          Well no, it actually has nothing to do with deletion of the object.

          What I really want to do is, select an object, then search the document to see if any tag in the document has the selected object in a link, then if so return the object that the tag is on. So what I'm trying to do is find an object that has a tag on it with a link to the selected object. If that explains it a bit better.

          I can support all of my plugin tags with a simple switch/case, and then check the AM parameter that's a link and see if the selected object is in it. But I was hoping to somehow support any tag. :o(

          I know about the function TransferGoals() that finds all links pointing to this object and transfers them to point to that object. So, somewhere in Cinema 4D it can identify all BaseLinks that point to a specific object. But I don't see anywhere in the SDK docs where there is some function available for what I wanted to do. :o(

          Adios,
          Cactus Dan

          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 17/01/2008 at 12:16, xxxxxxxx wrote:

            It was a guess. 😉

            As far as I know there isn't an exposed way to do this within the SDK - i.e.: it may be internal only. TransferGoals() is interesting is internal code - darn.

            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 17/01/2008 at 12:47, xxxxxxxx wrote:

              Howdy,

              Well, I may scratch that idea anyway, and do something different.

              Thanks anyway. ;o)

              Adios,
              Cactus Dan

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