How i can store data from a plugin?



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 11/03/2005 at 14:53, xxxxxxxx wrote:

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

    ---------
    Hi all,

    I would like to store data from my plugin to use it later in the next execution.

    How i can do it?

    Thanks all
    Renato T.



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 11/03/2005 at 16:31, xxxxxxxx wrote:

    If the data is in BaseContainers, storage is automatic when you save the Document.

    If not, you need to implement Read(), Write(), CopyTo(). There are source examples in the forum.



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 12/03/2005 at 02:21, xxxxxxxx wrote:

    Hi Kuroyume,

    i know that container are saved with the document but i would save in memory some data then recall them from a plugin without saving to disk.
    I would cache some data at first exectution of plugin.

    Thanks
    Renato T.



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 12/03/2005 at 08:21, xxxxxxxx wrote:

    What kind of plugin is it (Command, Object, etc.)?

    You can store data in the plugin data (allocated in Init() or similar) and it will remain there during a Cinema4D session. Just make sure to deallocate it in Free().

    If the data is needed between 'instances' (of Objects for instance), you may need to store the data in the Preferences using Set/GetWorldPluginData() - but it's only good for Containers as fas as I am aware.

    Need more specifics since different plugin types have different 'levels' of storage (some have data that can persist during an entire C4D session, others only during the existence of the instance).



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 13/05/2005 at 00:44, xxxxxxxx wrote:

    Thanks Robert

    i was sure to have reply this your post.. sorry and thanks for your help.

    I resolved my prob just with arrays.

    Renato T.


Log in to reply