Introduction to Maya - Modeling Fundamentals Vol 2
This course will look in the fundamentals of modeling in Maya with an emphasis on creating good topology. It's aimed at people that have some modeling experience in Maya but are having trouble with complex objects.
# 1 26-01-2018 , 03:40 AM
Registered User
Join Date: Jan 2018
Posts: 2

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 Advanceuser added image

# 2 26-01-2018 , 01:09 PM
Registered User
Join Date: Jan 2018
Posts: 2

Update

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

Attached Images
Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads