XSI input box in python error

Channel:
Subscribers:
2,200
Published on ● Video Link: https://www.youtube.com/watch?v=B9o8MWPDYnY



Duration: 3:44
222 views
0


Unable to get passed this issue. Basically, hard coding an argument (in this example: list1 or 2) - will allow the script to just run fine. But when I try to input via an input box - it seems to not work.

looking for help - struggling self learner.

the code itself is:


list1 = ['Taskmaster', 'Red Skull', 'Zemo']
list2 = ['Capt. America', 'Iron Man', 'Thor']



def findguy (where, inputguy):
a = "not here"
for i in (range(len(where))):
if where[i] == inputguy:
a = "yes here"
print a


findguy (list2, 'Thor')


x = Application.XSIInputbox ("Who are you looking for?","find character")
y = Application.XSIInputbox ("Which list?","Search List")




findguy (y, x)







Tags:
Python (Software)
Autodesk Softimage (Software)