Ah right, of course you need access directly to ActiveDoc because Grasshopper.
This script works:
__author__ = "jesterking"
import Rhino
# create an ObjRef
_cp = Rhino.DocObjects.ObjRef(cp)
# get the Plane out from the clipping plane
_cppl = _cp.ClippingPlaneSurface().Plane
# now transform the clipping plane by passing its GUID
# and a new transform that is created from the clipping
# plane to the new plane
Rhino.RhinoDoc.ActiveDoc.Objects.Transform(
cp,
Rhino.Geometry.Transform.PlaneToPlane(
_cppl,
plane
),
True
)
It works with this definition:
The model has a box and one clipping plane, the definition will allow you to move the clipping plane on the Y axis.
ClippingPlanePython.3dm (2.8 MB)
ClippingPlanePython.gh (9.7 KB)

