[Closed] SetSelection with Edit_Poly Modifier
how strange… but, indeed, just returns true regardless without selecting anything. No idea
.select does work – means you’ll have to clear the entire selection first, then use .select
Wooh got that bit working, now to get the Material ID assigned…
Any Clues? Can’t seem to the get PolyOp working with it.
I’ve tried using
$.Edit_Poly.MaterialIDtoSet = 56
But that doesn’t work, in the listener there is the followed… wondering if this is where my problems are for the selection problem as well… the Commit… Any clues? Bobo?
$.modifiers[#Edit_Poly].materialIDToSet = 55
$.modifiers[#Edit_Poly].Commit ()
Ok right, major Debug mode here…
Don’t know how i did it but I just managed to get
$.Edit_Poly.MaterialIDtoSet = 56
…to work, but it was a bit accidental and I don’t quite know what I did.
I google the Commit thing and found this… http://mnmugforum.com/index.php?topic=38.0
And whilst trying what he’s talking about the MaterialID did get set to 56, So has something to do with this Commit Function.
heh… I would have hope if was fixed if that was a bug… that post from 2004!
Right excuse my thinking outloud, This works!
$.modifiers[#Edit_Poly].SetOperation #SetMaterial
$.modifiers[#Edit_Poly].MaterialIDtoSet = 12
$.modifiers[#Edit_Poly].Commit ()