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

    BaseLink in Hyperfile

    Scheduled Pinned Locked Moved SDK Help
    5 Posts 0 Posters 543 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 01/09/2005 at 09:56, xxxxxxxx wrote:

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

      ---------
      Hi,

      I am storing a baselink into a basecontainer which I then save into the hyperfile. This is in the Write routine of my object.

      But when I try to read the baselink in again from the container in the Read function (all other values are in the container), the link to the baselist2d object is always NULL (the baselink however seems to be there).

      BaseList2D* link = bf.GetBaseLink(start++)->GetLink(hf->GetDocument());

      Is it not possible or am I doing something wrong?

      Thanks

      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 01/09/2005 at 10:36, xxxxxxxx wrote:

        I think that is too early, I'm not sure you should be trying to access objects within Read as its very possible they're not even available (not loaded). Why do you need to start accessing them there? How about after the document has finished loading?

        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 01/09/2005 at 10:44, xxxxxxxx wrote:

          I need to rebuild my nodesystem at that point. Concerning availability of the objects, I have just checked it and you are right, the objects I need are not yet there. Doh!

          But after the document has finished loading, which function would be the best to use then?

          I also noticed that it´s not possible to write to the objects container during the Write routine (so I cannot store my container that way).

          Are there any functions I can use to save and load my settings same as I´d do with Read/Write?

          Thanks!

          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 01/09/2005 at 10:49, xxxxxxxx wrote:

            I just saw the Message MSG_DOCUMENTINFO. Would that be suitable. I assume yes?! Will try that.

            thanks so far

            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 01/09/2005 at 11:47, xxxxxxxx wrote:

              that works 🙂

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