Skip to content

Instantly share code, notes, and snippets.

@tcrowson
Last active January 2, 2016 08:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tcrowson/8274309 to your computer and use it in GitHub Desktop.
Save tcrowson/8274309 to your computer and use it in GitHub Desktop.
For Softimage. Set the 'Vertex Color' display option to 'Never Show' for all cameras and 3d viewports (lights excluded). This can be very useful when working with normal maps, due to the crazy performance hit from Tangent properties.
from win32com.client import constants
for camera in [cam for cam in Application.ActiveSceneRoot.FindChildren2("", constants.siCameraPrimType)]:
Application.SetValue("%s.camdisp.vcdisplay" %camera, 0)
for viewport in Application.Desktop.ActiveLayout.Views.Find("View Manager").Views:
Application.SetValue("Views.View%s.UserCamera.camdisp.vcdisplay" %viewport, 0)
Application.SetValue("Views.View%s.TopCamera.camdisp.vcdisplay" %viewport, 0)
Application.SetValue("Views.View%s.FrontCamera.camdisp.vcdisplay" %viewport, 0)
Application.SetValue("Views.View%s.RightCamera.camdisp.vcdisplay" %viewport, 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment