Grasshopper

algorithmic modeling for Rhino

Hi,

I've been using the ghPython Component, and recently tried the new 0.5.0 version.

Other then the interface change, I noticed that its not able to change the  'rhinoscriptsyntax usage'.

Is it possible to emulate the 'add to Rhino Document' using the new one?

I read the new Components help, but thought if there was a working example.

I found it useful when I wanted to bake and apply textures.Maybe somthing like this.

import rhinoscriptsyntax as rs


srfPoints = surface.DuplicateVertices()
newSurface = rs.AddSrfPt(srfPoints)
matId = rs.AddMaterialToObject(newSurface)
rs.MaterialTexture(matId,pathToSomeWhere+name)

If it's hard I think I will revert to version 0.4.6 

Views: 305

Replies to This Discussion

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service