Help!! Python code to get place2dTexture filename of selected objects
Working on a project to change the scale of Texture of all selected object. I want to use place2dTexture name of file to set attribute using place2dTexture.repeatU/V command
Code:
foo=cmds.ls(type="place2dTexture")
The above command works but it list all the place2dtexture file name, also those i have not selected.
what is the code to list only from the selected object?
Also suggest any other way to accomplice this task!!
Thanks in Advance