Notifications
Clear all
[Closed] Maxscript for displaying material background preview in slate material editor
Feb 22, 2019 8:56 pm
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
Feb 22, 2019 8:56 pm
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))