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

    Read/Write/CopyTo

    SDK Help
    0
    4
    394
    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 08/03/2006 at 02:57, xxxxxxxx wrote:

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

      ---------
      It's not really clear in the documentation but, if I implement the Read()/Write()/CopyTo() functions in my tag plugin, AND my plugin also has some values stored in it's BaseContainer, is the BaseContainer read for me? or do I need to read those in too?
      If they get read automatically, is there some way for me to stop them from being read? Does it depend on whether or not I call the SUPER (parent) class routines and/or my return value from the R/W/C ?
      Thanks.
      - Keith

      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 08/03/2006 at 05:50, xxxxxxxx wrote:

        Read/Write/Copy are independant from the Basecontainer. All values in the basecontainer are stored and will be restored when the object is read (or initialised). This cannot be avoided.

        But I don´t see a reason why you´d want that. Maybe you elaborate on what you need it for.

        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 08/03/2006 at 06:43, xxxxxxxx wrote:

          As Katachi says, the BaseContainer is handled independently of Read/Write/CopyTo. In addition to that, its data is read/copied prior to Read/Write/CopyTo so that non-BaseContainer data dependent upon this can utilize it.

          That said, what would be your reason to avoid having the BaseContainer data read or copied? You could, if you just want to reinitialize certain data under these circumstances, reinitialize it in the Read and/or CopyTo methods. With CopyTo, just be careful to reinitialize the destination's BaseContainer data (and not the source's) : static_cast<BaseList2D*>(dnode)->GetDataInstance().

          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 08/03/2006 at 11:53, xxxxxxxx wrote:

            That's pretty much how I understood it, but I wanted to be sure.
            Thanks gents.
            - Keith

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