PDA

View Full Version : [MEL] Getting Layer name from PSDFile


DruG
11-23-2011, 08:54 AM
Hi:)

Is there a way to find a name of chosen layers from PSDFiles?

I`d like to write a script which would take that name and then name the material and mesh accordingly.

I haven`t found any MEL commands, but I`ve found a node:
http://download.autodesk.com/global/docs/maya2012/en_us/Nodes/psdFileTex.html

I`m a noob scripter, so I`m not sure if I can use that:)

edit:

ok, I`ve got it myself, that was super easy.

getAttr psdTextureName.layerSetName;



You can delete this thread or leave it for someone else;)

CGTalk Moderation
11-23-2011, 08:54 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.