Heya

Mmm interesting Justin ! 

I did try his approach but I was getting errors and in my efforts to find a 
solution I sort of started from basic pickle I could use... 

So I looked over ur script. I noticed you type val I guess it should have been 
diffColorAmmount so I changed it but once I run it, it turns out that maya 
pickle is only reading last 2 attributes, so the name + value of last iterated 
materials, is that normal? I thought I could store multiple data in to pickle.

for data in valList: 
    attr, diffColorAmmount 
    #cmds.setAttr(attr,diffColorAmmoun)) 
    print attr, diffColorAmmount

so once I print this attr,diffColorAmmount I only get last iterated material.

I went over this guy script to find some help but it looks like he is moving 1 
set of data at a time which is not what I want... whhh 
http://www.toadstorm.com/blog/?p=42

And then I tried this:

for data in valList: 
        print data
        for names in data:
                print names
                cmds.setAttr(names)

And I just uh do I use dict here ?

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to