Notifications
Clear all

[Closed] Patch selections

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

Hi Ian,

You can use the same methods as for an Emesh


p=quadpatch()
convertTo p Editable_Patch
p.selectedfaces=#(1)

Josh.

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