Notifications
Clear all
[Closed] filter edge list
Feb 09, 2013 8:27 pm
What would be a good process to filter a bitarray of edges base on their position.
For example. I want all the edges within the list who’s edge position falls between the z position of 2cm and 5cm.
This is f
or an editable poly.
1 Reply
Feb 09, 2013 8:27 pm
Hi, try this –
FilteredEdges = for i = 1 to (polyop.getNumEdges $) where
(
local EdgePos = ((polyop.getVert $ (polyop.getVertsUsingEdge $ #(i) as array)[1]) + (polyop.getVert $ (polyop.getVertsUsingEdge $ #(i) as array)[2])) / 2
EdgePos.z >= 2 and EdgePos.z <= 5
) collect i
polyop.setEdgeSelection $ FilteredEdges