Notifications
Clear all

[Closed] vertex Bits off,how?

Channel_True = Bit.Set 0 30 True
$.setVertexFlags (polyOp.GetVertSelection $) Channel_True

okay, how do i turn it off ?

2 Replies

 (
 	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
)
 

Gazillion thanks
i’ve been hitting my head for 2 days to make it work !