Ok, it's in IFF :) Gael Honorez wrote: > All the shader thumbnails are saved under a hidden directory at the same > level than the scene : > /.mayaSwatches > > The format is .swatches, not a clue of real format... > > > [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 -~----------~----~----~----~------~----~------~--~---
