Create material in focused viewport SME

Hi everybody.There is a script: create materials in the Slate Materials Editor from the Temporary Materials Library:
local matlib = currentMaterialLibrary
for i = 1 to matlib.count do (SME.getView SME.activeView).createNode matlib[i] [(i - 1) * 50, (i - 1) * 50]

but he creates materials behind the scenes of an open SME viewport.
how to create materials where the view of an open SME is focused?

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jahman's picture

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.