Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5750

Grasshopper Python SubD script (got getsetter_descriptor)

$
0
0

@h.h.c.manders wrote:

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?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5750

Trending Articles