Notifications
Clear all
[Closed] Patch selections
Jun 08, 2010 3:42 am
Hello, does anyone know of functions to get and set sub-object selections in editable patches? I couldn’t find any functions in the reference.
Thanks! -Ian
2 Replies
Jun 08, 2010 3:42 am
Hi Ian,
You can use the same methods as for an Emesh
p=quadpatch()
convertTo p Editable_Patch
p.selectedfaces=#(1)
Josh.
Jun 08, 2010 3:42 am
Hi Josh, thanks for the reply, using the selectedfaces meethod seems to work, but how would I put the current selection to an array? With edit mesh for example, I would use something like-
array01 = getfaceselection $
setfaceselection (array01 - #(1, 2, 3))
Also, for some reason this won’t work for the edit patch modifier, it only temporarily selects the face the after updating the viewport, the selection is gone. Thanks, -Ian