Home Technical Talk

PSD network in maya

Does anyone here still use a PSD Network when texturing in Maya.



Sardonix

Replies

  • Moosebish
    Options
    Offline / Send Message
    Moosebish polycounter lvl 12
    From prior experiences. It has slowed my computer down and caused errors when rendering.

    But that was a few versions ago. Its just habit to save a TGA by now...
  • CheeseOnToast
    Options
    Offline / Send Message
    CheeseOnToast greentooth
    No, but I use this ancient script to manually update PSDs with a single hotkey.
    // Updates all file textures in the scene
    //
    // If nothing is selected, all gets selected and all file textures are updated
    // If something is selected the script assumes that this is what needs to be updated 
    //
    // In the script editor the updated file textures are listed
    //
    // Last Change: 07.06 (Select all deleted and replaced with faster select all file nodes)
    // Author: Alexx
    //
    
    string $textureName;
    string $fileSelected[];
    
    
    $fileSelected = `ls -sl -type "file"`;
    
    if ((size($fileSelected)) == 0)
    {
    	$fileSelected = `listConnections defaultTextureList1`;
    	select $fileSelected;
    	$fileSelected = `ls -sl -type "file"`;
    }
    
    for ($i = 0; $i < `size $fileSelected`;++$i)
    {
    	$textureName = `getAttr ($fileSelected[$i] + ".fileTextureName")`;
    	setAttr -type "string" ($fileSelected[$i] + ".fileTextureName") $textureName;
    	print("\nUpdated: ");
    	print($fileSelected[$i]);
    }
    
    select -cl;
    
    
  • MichaelElphick
    thanks that script is incredibly useful!!
  • peanut™
    Options
    Offline / Send Message
    peanut™ polycounter lvl 19
    thx CheeseOnToast, will look into this script when i will work in Maya.
Sign In or Register to comment.