r/Maxscript • u/lucas_3d • Aug 31 '15
Convert array to edge selection #(2,4,6,9) to 2,4,6,9
myEdgeSel = #(2,4,6,9)
$.modifiers[#edit_poly].Select #Edge#{(myEdgeSel as ??)}I'd need the selection to be #{2,4,6,9}
How can I get 2,4,6,9 out of my array #(2,4,6,9)? thanks!
1
Upvotes
2
u/Swordslayer Sep 01 '15 edited Sep 01 '15
Note that you should use modPanel.getCurrentObject() whenever it makes sense instead of getting the modifier by name (it won't work if you rename the modifier in stack, when there are multiple modifiers of the same name etc.)
1
u/lucas_3d Aug 31 '15
So I iterated through it instead of converting any numbers.