Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Edge selection set

Edge selection set

Anonymous
Not applicable
336 Views
3 Replies
Message 1 of 4

Edge selection set

Anonymous
Not applicable
Does anyone know how to select a selection set through code in an Edit_Poly() at the edge level?

- I can do it in the max user interface.
- It looks like I can do it in an Edit Mesh, but not edit poly.
getEdgeSelection <node> name:<name>
- I can do it at the object level using selectionSets[]
- setCurNamedSelSet <string> changes the text in the dropdown at the top of max, but it doesn't change the selection. Even when used in conjunction with namedSelSetListChanged()

Is there anything that doesn't have a drawback?

As a workaround I can always store a edge list in the user defined properties, but it seems like this should be built in.
0 Likes
337 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
There 3 collection types: VertexSelection, FaceSelection, EdgeSelection.
They're described as relevant to Mesh but works in base Editable_Poly object.
p = convertToPoly (Plane())
setEdgeSelection p #{17..19, 27}
p.edges = p.selectedEdges
p.edges = #{1..4, 8..12}
p.edges.selSetNames -- #("foo", "baz")
setEdgeSelection p #{}
select p.edges
select p.edges
cheers!
0 Likes
Message 3 of 4

Anonymous
Not applicable
This code works on an Editable Poly but sadly doesn't seem to work on an Edit_Poly().

-- No ""setEdgeSelection"" function for Edit_Poly:Edit Poly
0 Likes
Message 4 of 4

Anonymous
Not applicable
Yep, as i said, base poly object (bad news for you maybe).
I hate any scripting work with EP-modifier.
0 Likes