Variable Size seems to be what the problem is.
Try out this script.
Select Everything between the :large_orange_diamond: 's and paste it into a .txt file. Then load it into ZBrush as a ZScipt. Press the button and see for yourself.
I think this is what is happening to me in my <b>[Bit Problem Post](http://www.zbrushcentral.com/zbc/showthread.php?t=26830)</b>
:large_orange_diamond:
IButton,
"TestDataSize",
"Test variables Data Size",
[Note,"Begin Loop 1"]
[Loop,10,
[VarSet,v1,[StrMerge,"Loop[1] i:",i," Val:",[Val,9999920+i]]]
[Note,v1]
,i
]
[Note,"Begin Loop 2"]
[Loop,10,
[VarSet,v1,[StrMerge,"Loop[2] i:",i," Val:",[Val,99999920+i]]]
[Note,v1]
,i
]
[Note,"Finished"] // Completed
] /* Notes to user*/
Cycle Through 2 loops, a 7 digit number works fine, an 8 digit number breaks.
We are just adding 1 to the base number. There Are 2 sets of 10 cycles (20 total)
:large_orange_diamond:
Can Someone clarify what is happening ?
<…time goes by…>
Just did some tests and I found this out.
It appears that the variables are limited to 24bits. so you have a max of
16777216
Put the number 16777213 in to the loop, you will see everything OK untill you hit 16777216, then it messes up.
This explains my previous problems happening at 24 / 25. Wow it all seems so clear now. But I have never heard of 3byte variables, kind of strange. OK, I will just enjoy it… now that it is understood.
Chris