how to set random rotation to polygons on a grid
Hey guys.
I'm trying to do something really simple, creating a grid connected to a polygon and putting a random rotation to each of this polygons.
The problem is that the polygons are not rotating around they own axis, but around the 0, 0 position. I want to have a grid with random rotated polygons, not the mess I'm doing.
Check my script and give suggestions. Thanks.
- poly_rotate.ndbx 1.19 KB
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by lucasnijs on 24 May, 2015 08:16 PM
Hello,
you rotate around the origin point indeed. The rotate node has an input port, if you connect the points of the grid to that port it will use that list of points as the rotation points.
good luck
2 Posted by Shuantsu on 25 May, 2015 10:46 PM
Thanks so much, that is exactly what I wanted. ;)