Forgive my apparent ignorance, but I've only picked up grasshopper recently and have endeavoured to get to grips with it, without the need to pester the office's resident grasshopper/CAD monkey (he's a busy chap these days) and searching on these boards revealed very little.
Whilst a lot of the functions and methodology all comes across as quite logical, I find movement of simple objects to confuse me each and every time. Currently I've set up a very simple function that measures the input rectangle (pre drawn in rhino), segments it into blocks using Recgrid and then find the 0,0,0 point of each grid square by using Hframes and a value of 1. Using these Hframes I create a rectangle the size of the aforementioned segments, but when they are created, the Hframes are at their centre, so they appear to be staggered down and to the left if viewed from top down perspective.
How on earth can I move these rectangles so that their 0,0,0 point sits on the Hframe 0,0,0 point (i.e. they lie in the exact same position as the grid?). Bear in mind I can't rely on a constant X/Y axis (hence using Hframes) as this function will be used to divide larger city areas into smaller city blocks.
Thanks.
(attached: red grid is Recgrid construction, green grid are the rectangles I created that need to be moved in line with the red grid)
Tags:
- Attachments:
-