Notifications
Clear all

[Closed] Maxscript for displaying material background preview in slate material editor

Hi,

I am having a scene with many vray materials. I want to enable show background in preview for the materials in slate material editor.

How can I do it by maxscript?

1 Reply

getMTLMEditFlags ( <material> | <texture> )
setMTLMEditFlags ( <material> | <texture> ) <bitarray>

Get and set the MEdit options for the specified material or texture as a <bitarray>.
If a bit is on, the corresponding option is turned on.
The order of the bits is: #{ MTL_BEING_EDITED,BACKGROUND,BACKLIGHT,VIDEO_COLOR_CHECK }

for mtl in SmeGetSelectedMtls() do setMTLMEditFlags mtl (#{2} + (getMTLMEditFlags mtl))