I am writing a delay script in a chop execute. The code is followed.
for i in range (7):
delay_script = “print(i)”
run(delay_script, (i + 1), delayFrames = 60 * (i + 1))
Here is the error.
Traceback (most recent call last):
File “</project1/chopexec1:print(i)>”, line 1
NameError: name ‘i’ is not defined
Inside the for loop, when I am not using the delay script, the print(i) can print out correctly without error.
But when using delay script, it is said the i is not defined.
Anyone has idea why there is this error?
Thank you in advance!