can you elaborate a little more? what do these data structures represent?
give some more context it'd be easier to help out.

- Ofer
www.mrbroken.com


On Thu, Apr 29, 2010 at 6:59 PM, [email protected]
<[email protected]>wrote:

> hi im having problems repeating this code
>
> i have two lists
>
> vertList1 = ['21', '20', '22', '21', '23', '22', '24', '23', '25',
> '24', '26', '25', '27', '26', '28', '27', '29', '28', '30', '29',
> '31', '30', '32', '31', '33', '32', '34', '33', '35', '34', '36',
> '35', '37', '36', '38', '37', '39', '38', '20', '39', '41', '40',
> '42', '41', '43', '42', '44', '43', '45', '44', '46', '45', '47',
> '46', '48'] and so on ......
>
> vertList2 = ['0', '1', '1', '2', '2', '3', '3', '4', '4', '5', '5',
> '6', '6', '7', '7', '8', '8', '9', '9', '10', '10', '11', '11', '12',
> '12', '13', '13', '14', '14', '15', '15', '16', '16', '17', '17',
> '18', '18', '19', '19', '0', '20', '21', '21', '22', '22', '23', '23',
> '24', '24', '25', '25', '26', '26', '27', '27', '28', '28']  and so
> on .....
>
> and i wanna search for
> vertList1[0], vertList1[1]
> in vertList2
>
> then i wanna search for
> vertList1[2], vertList[3]
> in vertList2
> and so on......
>
> the code i have is :
>    x1 = 0
>    x2 = 1
>    y1 = 0
>    y2 = 1
>    q = 0
>
>    while q < (len(vertList2) / 2):
>        if vertList2[y1] == vertList[x2] and vertList2[y2] ==
> vertList[x1]:
>            print 'match found'
>            print vertList[x2]
>            print vertList[x1]
>            print 'face ' + str(y1)
>            print 'is linked to face : ' + vertList[x1]
>
>        x1 = x1 + 2
>        x2 = x2 + 2
>        q = q + 1
>
> but i need it to search the group again for the next values
> if anyone can help it will be greatly appreciated
> thanks in advance
>
> --
> http://groups.google.com/group/python_inside_maya

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to