NodeData based classic plugin classes can implement NodeData::Read() and NodeData::Write() . This allows to store internal data that is not stored in the BaseContainer when the scene is saved to a *.c4d file.
NodeData::Read() corresponds to C4DAtom::Read() , NodeData::Write() corresponds to C4DAtom::Write() .
另请参阅 BaseDocument Disc I/O .
NodeData::Read() is called when a *.c4d file is loaded, NodeData::Write() is called when the element is saved to a *.c4d file. The given HyperFile object represents this *.c4d file.
// This example stores an internal list and an integer value with the actual object.The arguments of the functions are: