Notifications
Clear all
[Closed] Move material from Temporary Library to an open SME
Page 2 / 2
Prev
Feb 02, 2023 8:27 pm
mxs reference is your best friend if you’re going to write scripts
<void>SetSelectedNodes <maxObject by value array>refs
used like this
array_of_materials = ...
view = SME.GetView SME.ActiveView
view.SetSelectedNodes array_of_materials
as an alternative every sme node has .selected property which you can set to true
sme_node = view.createNode (falloff()) [10,10]
sme_node.Selected = true
As a non-destructive workflow I’d do it like this
- Store previous sme selection
- Deselect all view nodes
- Put new materials/textures into active view
- Layout all nodes in a view
- Select newly created nodes
- Pan to selected
- Restore previous selection
Page 2 / 2
Prev