Introduction to Maya - Rendering in Arnold
This course will look at the fundamentals of rendering in Arnold. We'll go through the different light types available, cameras, shaders, Arnold's render settings and finally how to split an image into render passes (AOV's), before we then reassemble it i
# 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