In my python Script I have:
user = nuke.getInput("Frames Turned On")
userLst = [user]
print userLst
Result: ['12,33,223']
I was wondering How I would remove the '
in the list, or somehow convert it into int?
Use
|
|||
|
There's no You probably want to split the string by commas, like so:
If you want those to be
|
|||
|
I have no idea why you've defined the separate |
|||
|
|
|||||||||||||||||
|
|
|||
|
You could use the join method and convert that to an integer:
|
|||||||||||||||||
|
'
" in the list['12,33,223']
, you get[12,33,223]
-- at least this is how I read it... – Sven Marnach Jun 16 '11 at 21:40