How to select cylinder axis edge

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I'm completely new to MEL and I'm looking for a command or series of commands that can select a specific edge.
The targeted edge is any axis edge on a one sided cylinder pipe (made from combine[two no-cap cylinders] -> bridge [blend]). This edge will be have SelectContiguousEdges called on it to select a full length-wise array of edges.
I am unable to determine if the edges are numbered in a certain order based on axis subdivisions or another condition, so right now I have to manually record the edge selected and provide it to my script.
My next attempt is to:
select an arbitrary edge ->
SelectContiguousEdges ->
CreateCurveFromPoly ->
somehow select endpoints of the curve (perhaps start and end CV, but the pipe must be longer than it is wide between two continuous CVs, so it wouldn't be a the best solution) ->
check if the positions are almost equal ->
yes, it is a cylinder ring and check a different edge -> continue
no, it is what I'm looking for -> exit loop