Notifications
Clear all
[Closed] vertex Bits off,how?
Sep 06, 2011 6:49 pm
Channel_True = Bit.Set 0 30 True
$.setVertexFlags (polyOp.GetVertSelection $) Channel_True
okay, how do i turn it off ?
2 Replies
Sep 06, 2011 6:49 pm
(
mask = bit.set 0 30 on
polyOp.setVertFlags $ #{1,3,5} mask mask:mask
print (polyOp.getVertsByFlag $ mask)
polyOp.setVertFlags $ ($.verts as bitarray) 0 mask:mask
print (polyOp.getVertsByFlag $ mask)
)
-- or
(
arr = #{}
mask = bit.set 0 30 on
$.setvertexflags #{1,3,5} mask flagmask:mask --set on
$.getVerticesByFlag arr mask
print arr
$.setvertexflags ($.verts as bitarray) 0 flagmask:mask --set off
$.getVerticesByFlag arr mask
print arr
)