Hi,
I’m trying to modify the underlying geometry of a referenced Rhino Geometry.
In this case a polyline, where I want the points of the polyline to move to new location.
I want to keep this simple, and I want the object to maintain all information (including ID if possible).
Now the code below is wrong, as I’m aware that the polyline I’m extracting is a new instance and not actually a reference the geometry of obj. But I hope it kind of shows what I want to do.
import Rhino
obj = Rhino.RhinoDoc.ActiveDoc.Objects.Find(x)
polyline= obj.Geometry.TryGetPolyline()[1]
polyline.SetAllX(5.0)
obj.Geometry = polyline
obj.CommitChanges()
obj.Geometry only allows me to get but not set.
I came across this comment from David, which, if I read it right, means that what I want to do is not directly possible, but what would be the best way around it?
5 posts - 2 participants