Can one access plug-ins through scripting and use their properties and methods?

Hi @ucbqeor,

Something like this:

import scriptcontext as sc
import Rhino
import ghpythonlib.components as ghcomp

def test_quickhull():
    filter = Rhino.DocObjects.ObjectType.Point
    rc, objrefs = Rhino.Input.RhinoGet.GetMultipleObjects("Select points", False, filter)
    if rc != Rhino.Commands.Result.Success: 
        return
    
    in_points = []
    for objref in objrefs:
        in_points.append(objref.Point())
    
    out_curves = ghcomp.GhPolyhedra.QuickHull(in_points)
    if out_curves:
        for curve in out_curves:
            sc.doc.Objects.AddCurve(curve)
    
    sc.doc.Views.Redraw()
    
if __name__=="__main__":
    test_quickhull()

– Dale

1 Like