previous array element value?

Forums ProRealTime English forum ProBuilder support previous array element value?

Viewing 5 posts - 1 through 5 (of 5 total)
  • #168075

    Any idea how to get an arrays variable previous value ?  For instance, I tried this silly code:

    but $x[0][1] which is supposed to be the old value returns the present value same as $x[0] 

    #168078

    It’s not allowed because arrays are not historicized, unlike common variables which allow to see previously  retained values.

     

     

    #168080

    IF you have an array and want to historicize a very few elements, say elements 1  and 4, you can write:

    (unless you want to use a1, a2, a3,… a1000, provided you have enough time and memory).

     

    1 user thanked author for this post.
    #168081

    ok, maybe they reserve the format $x[i][j] for future 2-D arrays.  Yes, I found a simple workaround by using  temp variables like you said, but it takes  memory and time for long vectors:

     

    #168084

    Historizing arrays would have take more memory than this workaround, considering that the current one dimension array can handle one million column! 🙂

Viewing 5 posts - 1 through 5 (of 5 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login