Grasshopper Python SubD script (got getsetter_descriptor)

Hey all,

I have been playing around with Rhino 7 and it’s SubD possibilties. To make the modeling easier I have been trying out to generate the SubD from a mesh through Grasshopper python. One of the functions within Rhino ToSubD is to InterpolateMeshPoints. I wanted to try this within Grasshopper as well however when I define the SubDCreationOptions and call InterpolateMeshVertices I get a getsetter_descriptor error.

Specifically:

Runtime error (ArgumentTypeException): expected SubDCreationOptions, got getset_descriptor

Script:

import rhinoscriptsyntax as rs
import Rhino.Geometry as rg

geometry = rs.coercemesh(x)
options = rg.SubDCreationOptions.InterpolateMeshVertices

a = rg.SubD.CreateFromMesh(geometry, options)

Any one has experience with this?

Please don’t double post