I have an array that looks like this: #(4, 12, #{4, 11}, #{10..11}, #{10, 12})
how do i access the second '4'?
I've tried myArray[3][1], and a ton of other possibilities... but nothing works.
Basically, I just want to write a function that will collapse this array into something that looks like this: #(4, 12, 4, 11, 10, 11, 10, 12).
Can anyone help me? is there a quick fix function out there? How do I access these numbers?
btw, the reason some numbers are in pairs is because I appended 2 selected verts into the array.
the first two numbers in the array were created by this command:
myarray = $.editablepoly.getselection #vertex as array
the rest of the numbers were created through this command:
append myarray ($.editablepoly.getselection #vertex)
in both cases, two verts were selected.
barigazy · 2012-08-31