Grasshopper

algorithmic modeling for Rhino

I've been trying to figure out how to edit the UV's of a mesh in gh.

I have a working version of the script in rhino python, but it seems to hinge on the use of mesh.CommitChanges(), which isn't recognised in ghpython.

Is there a way around this?

Images, rhino python, and ghpython script attached with test mesh.

Views: 826

Attachments:

Replies to This Discussion

Hi Daniel,

Grasshopper deals with geometry and not with "Rhino Objects". That means that not all functionality of RhinoObject can be accessible from the GhPython plug-in. That includes CommitChanges(), that is essentially a part of the undo-redo logic.

Is your code working if you skip CommitChanges()?

What if you just replace the old geometry with the new one, and directly only work on Geometry?

(RhinoDoc.ActiveDoc.Objects.Replace()? )

Giulio
--
Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service