Hi!
I have 10 objects in rhino (made to blocks) and I want to randomly select, copy and move 3 of theese objects to origo. Where should I start?
Hi!
I have 10 objects in rhino (made to blocks) and I want to randomly select, copy and move 3 of theese objects to origo. Where should I start?
You can use random.sample()
to randomly select N elements from an iterable. There are different methods for moving different types of objects (e.g. a point can be moved by adding a vector), but most RhinoCommon geometry types have the Transform()
method.