SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.


SM Forums / Maya Questions / Programming / Help!! Python code to get place2dTexture filename of selected objects

Programming MEL Scripts, Expressions & Programming Related Topics

Join the conversation. Reply to post
 
Thread Tools
26-01-2018, 03:40 AM   #1
heshinclude
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 Advance
  Reply with quote
26-01-2018, 01:09 PM   #2
heshinclude
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
 
  Reply with quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exporting selected objects as 1 obj file (multiple subtools in zbrush ) goggles Maya Technical Issues 2 10-04-2013 11:40 AM
x,y,z reading on selected vertices and objects fatalityz Maya Basics & Newbie Lounge 11 06-09-2009 02:47 AM
Highlight selected objects in viewport cammac Maya Basics & Newbie Lounge 1 18-11-2007 12:55 PM
Lighting only selected objects BeerGoggles Lighting & Rendering 2 21-03-2004 09:29 PM
random translateY for selected objects Darkware Programming 14 04-06-2003 12:30 AM