I posted my problem in the texturing forum and they told me to ask you guys. ;)
The original issue was, that I wanted to find a neat option inside of maya to change the texture resolution of file textures within the maya viewport.
We found out, that you can simply add an integer attribute to the file node called "resolution" which will let you change the viewport resolution "on the fly".
Perfect so far!
Now I've got a pretty heavy scene and a lot of textures, which I would like to do this with.
What would be the script to add that new attribute to all the selected file nodes at once? And how could I change that for all of them together?
I know it had something to do with generating a list of all the selected objects and putting this into a variable, but I really can't get it together... :(
Is it also possible to automatically do that, while not even having the file node selected, but the object which it is applied to?
Lets say, I have a cube, with a lambert assigned to it which gets its color and bump info from two file nodes. Is it possible to change those two file node's "resolution" value, while only having selected the cube?
Hope you can help me there. I've never done anything in MEL, that exceeded 2 lines. ;)
Thanks a lot!