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

    Storing links in tag plugin

    SDK Help
    0
    5
    385
    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 05/09/2004 at 22:23, xxxxxxxx wrote:

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

      ---------
      Instead of using member variables and implementing Read(), Write(), and CopyTo(), I'd like to know if BaseContainer BaseLinks can be used to store a reference to a BaseSelect (or its originator tag) or a tag so that persistence is retained when saving and loading the C4D file.

      Also, is there any way to store arrays in BaseContainers? I cannot find any information that would make it possible except through CustomDataType (which seems very far to go to store an array of values - "Yeah, I need a PluginCafe ID to store 2 CHARs in a BaseContainer" - Okay, I exaggerate, but, come on. Makes using member variables and implementing seem easier. void* has worked for decades... 🙂

      Thanks,
      Robert

      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 07/09/2004 at 11:13, xxxxxxxx wrote:

        Got the hang of BaseLinks - they work well. Guess it's the ole' Read, Write, 'Rithmetic for the arrays! 😉

        Robert

        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 10/09/2004 at 16:48, xxxxxxxx wrote:

          Hey Robert...I've been trying to figure out exactly this problem.  As far as my research and question-asking has revealed, you can't store an arrray in a BaseContainer object. But from what I'm gleaning from your post it looks like the way to go is via a BaseLink? Would you mind sharing additional details on your findings? I would greatly appreciate it!

          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 10/09/2004 at 17:43, xxxxxxxx wrote:

            BaseLink needs a defined library type (e.g.: Tbase or Obone). Even if you could get the array into a CustomDataType that could be linked into a BaseContainer, you would still need to eventually (down the line) implement Read, Write, and CopyTo in order to save and retrieve the array from file or copy it with a Copy operation.

            See my other reply for how I implemented these in the TagData.

            Robert

            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 10/09/2004 at 22:08, xxxxxxxx wrote:

              Just caught the other reply. Thanks man, you really helped me out a great bit by confirming and elucidating some things I supsected.

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