Hi, how to input frame number or range will use for render

   1900   0   1
User Avatar
Member
46 posts
Joined: 1月 2012
Offline
Hi, how to input frame number or range will use for render
I'm try to make a python script,
that I input like maya or max render frame range,
for example, I input the 10,20,30,40-45
it will return for render or create frame specifies simulation frame.

this is my code:

a = hou.parm(“../createframe”).eval()
b = a.split(',')
for tmp in b:
if hou.frame() == float(i):
return int(i)
return 999999

Q:
1.this script will return 3 or 6 time for the string number… how to fix?

2.the tmp always print out the first element of a , but I think the syn is correct, how is happen wrong?

thanks advance !
  • Quick Links