I don't know what your script is but that's my entire script needed to do similar to what you asked.
------------------------------
Simon Redmile
Senior Graphic Programmer & Designer
Ross Video
Bristol United Kingdom
------------------------------
Original Message:
Sent: 02-15-2023 07:20
From: Brad
Subject: Increment Limits
Where would i apply that into my already script?
------------------------------
Brad Howard
------------------------------
Original Message:
Sent: 02-15-2023 06:56
From: Simon Redmile
Subject: Increment Limits
This might not be the best way but I have this for exactly the same issue.
This goes from 1 to 9 and back to 1.
if (params.getValue('YOUR PARAM', 0) < 9)
{
params.setValue('YOUR PARAM', 0, (params.getValue('YOUR PARAM', 0) + 1));
} else {
params.setValue('YOUR PARAM', 0, 1);
}
------------------------------
Simon Redmile
Senior Graphic Programmer & Designer
Ross Video
Bristol United Kingdom