algorithmic modeling for Rhino
Hi all, having a small issue repeating the 'move' command a specific number of times with Python. I have 4 sets of rectangle groups that I want to move a specific number of times. I'm trying to use the "_ in range()" method, but am encountering problems since each rectangle group needs to move a unique number of times. Attached is a very simple script and any guidance about what I'm doing wrong would be greatly appreciated. Thanks!
Tags:
I'm afraid I can't quite follow the logic of your scripts. I've attached an example of how I usually approach these types of algorithm, maybe that'll help (I used RhinoCommon, but you can just replace those methods with their rhinoscriptsyntax equivalents). Best, Anders
Alas the Grasshopper Python editor hints is incomplete and doesn't include the whole standard library such as copy:
As Rhino is stuck with IronPython 2.7, the standard library references are here:
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
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by