1

In the slate material editor, I can right click a material and toggle "show Standard Map in Viewport". How can I toggle/set this option of a material programatically from maxscsript?

Edric
  • 24,639
  • 13
  • 81
  • 91
marc40000
  • 3,167
  • 9
  • 41
  • 63

3 Answers3

6

Simply use the materials .ShowInViewport property.

example: myMaterial.showInViewport = on

Rotem
  • 21,452
  • 6
  • 62
  • 109
2

On the Top of the Menu Bar, While You are choosing/Clicking "Material Editor" Button, Left Click That Button for More Than 1 Second, You Will Get another Advanced Option Material Editor you can toggle between this option.

1

You can also use the function showTextureMap,

It works on the material level and the texturemap level:

Example 1: showTextureMap $box001.material On

Example 2: showTextureMap $box001.material $box001.material.diffusemap On

To turn it off, just type Off at the end instead of On