During object selection, is there a way to have RhinoGet.GetMultipleObjects or Custom.GetObject.GetMultiple highlight only the selected BrepFaces instead of the entire brep when the latter is within a block? The GIF on the left shows the behavior that I want but for face selection.
SelBrepCompsWithinBlock.3dm (59.1 KB)
import Rhino
import scriptcontext as sc
def main():
rc, objrefs = Rhino.Input.RhinoGet.GetMultipleObjects(
"Select edges",
acceptNothing=False,
filter=Rhino.DocObjects.ObjectType.Curve)
if rc != Rhino.Commands.Result.Success: return
for objref in objrefs:
crv = objref.Curve()
sc.doc.Objects.AddCurve(crv)
sc.doc.Views.Redraw()
if __name__ == '__main__': main()
import Rhino
import scriptcontext as sc
def main():
rc, objrefs = Rhino.Input.RhinoGet.GetMultipleObjects(
"Select faces",
acceptNothing=False,
filter=Rhino.DocObjects.ObjectType.Surface)
if rc != Rhino.Commands.Result.Success: return
for objref in objrefs:
face = objref.Face()
brep_Out = face.DuplicateFace(duplicateMeshes=True)
sc.doc.Objects.AddBrep(brep_Out)
sc.doc.Views.Redraw()
if __name__ == '__main__': main()
Thank you