algorithmic modeling for Rhino
Hi Max
I'm sorry, there isn't such a function. You can use rs.TransformObject() an adequate number of times (loop). The overall logic is not too terrible to figure out, and you might tweak it.
Giulio
--
Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com
Hi Guilio,
So far I've been imitating the _Array and _ArrayPolar commands using loops, which worked well.
I thought I had _ArrayCrv all figured out by dividing the rail curve and using rs.OrientObject, however it seems to make the script slow, and also the curve frames of polylines seem to flip randomly at the kinks, and I can't find the equivalent of Grasshopper's "Perp Frame" or "Horizontal Frame"...do they exist in Python? And do you have any concerns about working this way?
Cheers,
Max
"Frames" are just planes in rhinosciptsyntax and RhinoCommon. They should work fine, if you feel like re-doing that logic in Python. Or you can call that functionality using the "real" components or ghpythonlib.components. Up to you. :)
Giulio
--
Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com
I took the easy way out and used the ghpythonlib, thanks ;)
I do have one last question though, and then I promise to leave you alone (for today):
This is probably off-topic but I was using "real" points (rs.AddPoint) and rs.OrientObject to array points many times along a polyline. The script was pretty slow, and I thought working numerically (that is, finding reference and target planes and using rs.PointAdd) would make it much more efficient. At first glance this doesn't seem to be the case though. Should it?
Cheers,
Max
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by