Hmm... does anyone know the format of those ".swatches" files that are stored in the .mayaSwatches directory maya makes under your scenes directory?
- Paul On Thu, Jul 9, 2009 at 7:41 AM, [email protected]<[email protected]> wrote: > > Hi, > Is there anyway to store maya shading node thumbnail image to a file. > We actually not like to create a sphere and add material and render > becuse we may need 100 of material thubnails in a loop...and this > process is slower and not cleaner. We found this mel command > (swatchDisplayPort).... > > import maya.cmds as cmds > window = cmds.window(wh=(256, 256)) > cmds.columnLayout() > myShader = cmds.shadingNode('anisotropic', asShader=True) > cmds.swatchDisplayPort( wh=(256, 256), sn=myShader) > cmds.showWindow( window ) > > But now we are not sure how to store this thumbnail as a image file > without displaying as GUI control. > > Thanks > Susanta > > > > --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---
