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

    saving values in an array?

    Scheduled Pinned Locked Moved SDK Help
    6 Posts 0 Posters 582 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 27/10/2009 at 13:35, xxxxxxxx wrote:

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

      ---------
      Hi there,

      I have a general question. How can i save values over the time the plugin is running. I want to create an array of values to which I'd like to add a value every new frame. So that the array length is 0 at frame 0 and 50 at frame 50 for example. But where and how do I store such values and how do i create such a thing?

      i think its something like baking particles work i guess but where do i find how it works?

      thanks in advance for any help.

      cheers,
      ello

      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 27/10/2009 at 14:11, xxxxxxxx wrote:

        I'd use the GeDynamicArray as it can be sized up and down automatically. Do a search for it here for more information/code. 🙂

        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 27/10/2009 at 14:45, xxxxxxxx wrote:

          thank you. i hope that i can get the hang of GeDynamicArray 🙂
          atm i face an error "missing ; before <"

          GeDynamicArray<Vector>punkte;

          edit: nevermind, i forgot to include ge_dynamicarray.h

          cheers,
          ello

          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 27/10/2009 at 15:17, xxxxxxxx wrote:

            ok.. got it working in a simple test script. one thing i still dont understand from what i have found here, can i create an array holding other arrays? How would i do that?

            thanks,
            ello

            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 27/10/2009 at 17:05, xxxxxxxx wrote:

              I did it like this:

              class Node
              {
              ...
              };
              class Root
              {
              ...
                   GeDynamicArray<Node*>     nodes;
              ...
              };
              class MyClass
              {
              ...
                   GeDynamicArray<Root*>     roots;
              ...
              };

              Basically, the Root class represents an array item which each holds an array of nodes. As you can surmise, you need some defined class to act as the array type and elements. GeDynamicArray is a Template class and doesn't do anything on its own.

              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 28/10/2009 at 00:48, xxxxxxxx wrote:

                thank you. gonna try to get it working. anyhow, yesterday i had such a performance drop that i think if i use arrays of the array i created i'll get a system crash (?)

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