PDA

View Full Version : Reload All Textures


beetz15s
09-17-2009, 08:06 PM
Im looking for a ml script to loop through all texture nodes and reload them.

dbsmith
09-17-2009, 10:08 PM
Can't post his code without permission, but should be able to find it from here.

Author: David Keegan (eyelink@sbcglobal.net)
Copyright (C) 2004 David Keegan
www.keegan3d.com (http://www.keegan3d.com/)

ewerybody
09-18-2009, 07:19 AM
thats easy just list the file-nodes in maya and reset its texturePath:

for ($file in `ls -type "file"`)
setAttr -type "string" ($file + ".fileTextureName") (getAttr($file + ".fileTextureName"));

CGTalk Moderation
09-18-2009, 07:20 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.