Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Programming (https://simplymaya.com/forum/forumdisplay.php?f=32)
-   -   Help!! Python code to get place2dTexture filename of selected objects (https://simplymaya.com/forum/showthread.php?t=45218)

heshinclude 26-01-2018 03:40 AM

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:help:

heshinclude 26-01-2018 01:09 PM

Update
 
1 Attachment(s)
This is what i need to retrieve even if it the name changes
(for e.g place2dTexture1 is changed to Texture1)


All times are GMT. The time now is 05:18 AM.

Powered by vBulletin® Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Simply Maya 2018