ReadObject
-
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
-
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
-
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.
-
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 -
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