Notifications
Clear all

[Closed] BitArray problem.. plz help

Hi I have a little problem with this bit array:

What I’m trying to do is get the first number from the bitarray, but when I solve it it does something wrong.

I will then use the first number (ex. 23 ) to select an PolyEdge, what is it I’m doing wrong ???

MyVal = (#{(bitarray2array bothrings)[1]}) as bitarray

EdgeVal = ($.EditablePoly.SetSelection #Edge MyVal)

Hope u can help

1 Reply

That works for me. But it’s not the method that I would most likely use to accomplish this. This would be more direct:

polyOp.setEdgeSelection $.baseObject (bothrings as array)[1]