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
    • Recent
    • Tags
    • Users
    • Login

    ReadObject

    Scheduled Pinned Locked Moved SDK Help
    5 Posts 0 Posters 508 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 10/09/2010 at 08:16, xxxxxxxx wrote:

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

      ---------
      Hi,

      assuming I wrote a polygon object with WriteObject, does ReadObject() allocate or resize the object accordingly or does it have to be of the correct size already (as in poly, point etc. count)? Does it also store and read any attached nodes like tags?

      The docs are very unclear on this.

      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 13/09/2010 at 05:37, xxxxxxxx wrote:

        hmm ok, as noone seems to know or wants to answer in time I rather write the object and tags myself now. thx

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

          The docs do say:

          Note: \_<\_span title="bool c4datom::readhyper hf, lOng id, lOng level"\_>\_Read ()[URL-REMOVED], \_hf">Write()[URL-REMOVED], \_reader">ReadObject()[URL-REMOVED] and \_::Hyper hf">WriteObject()[URL-REMOVED] are generally not recommended for plugins.

          UAYOP (Use At Your Own Peril) imo.

          The easiest way to test the results would be to call ReadObject() and see if you crash.  That would be a quick determiner of memory prerequisites


          [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.

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

            The response I got in the past from the developers was to create Cinema documents containing the object. At least that's what the content browser for example is doing for the presets, afaik. Why do you want to use Read/WriteObject?

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

              hi thx both.

              I wanted to use Read/WriteObject because I wanted to..well..read and write an object to a hyperfile. But ok, with all these information it´s probably indeed more straight forward to store the polygon object and tag data myself. So I will do so.

              thank you

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