I’m just starting to learn ZScripting, and there’s almost nothing more frustrating when learning than a tutorial example that doesn’t work quite right.
Every time I try to do a Loop command, it executes twice as many times as I indicate. This includes the tutorial (shown bellow) on the very subject. (found here) http://docs.pixologic.com/user-guide/customizing-zbrush/zscripting/advanced-techniques/
[VarDef,counter,0] //defines a number variable called counter
[VarDef,message,""] //defines a string variable called message
[Loop,10, //loop set to 10 times
[VarSet,counter,(counter+1)] //adds 1 to the value of counter variable
[VarSet,message,[StrMerge,"The counter is now at : ",counter]] //merges string with value of counter and stores it in message variable
[Note, message,1] //displays message for 1 second
] //end of Loop
This block executes 20 times, instead of 10. I’ve used several values, and in each case it is executed twice as many times as it is set. Is there something missing? Has something changed?
Thank you kindly,
Chris