tag:support.nodebox.net,2012-11-01:/discussions/nodebox-2-3/5492-how-to-set-random-rotation-to-polygons-on-a-gridNodeBox: Discussion 2019-06-29T07:10:36Ztag:support.nodebox.net,2012-11-01:Comment/369146852015-05-22T17:51:41Z2015-05-22T17:51:42Zhow to set random rotation to polygons on a grid<div><p>Hey guys.</p>
<p>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.</p>
<p>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.</p>
<p>Check my script and give suggestions. Thanks.</p></div>Shuantsutag:support.nodebox.net,2012-11-01:Comment/369146852015-05-24T20:16:41Z2015-05-24T20:16:41Zhow to set random rotation to polygons on a grid<div><p>Hello,</p>
<p>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.</p>
<p>good luck</p></div>lucasnijstag:support.nodebox.net,2012-11-01:Comment/369146852015-05-25T22:46:20Z2015-05-25T22:46:20Zhow to set random rotation to polygons on a grid<div><p>Thanks so much, that is exactly what I wanted. ;)</p></div>Shuantsu