how to set random rotation to polygons on a grid

Shuantsu's Avatar

Shuantsu

22 May, 2015 05:51 PM

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.

  1. Support Staff 1 Posted by lucasnijs on 24 May, 2015 08:16 PM

    lucasnijs's Avatar

    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. 2 Posted by Shuantsu on 25 May, 2015 10:46 PM

    Shuantsu's Avatar

    Thanks so much, that is exactly what I wanted. ;)

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • poly_rotate.ndbx 1.19 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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

Recent Discussions

14 Mar, 2025 08:32 AM
10 Mar, 2025 06:36 PM
10 Mar, 2025 06:36 PM
10 Mar, 2025 06:36 PM
10 Mar, 2025 12:30 AM

 

02 Mar, 2025 12:34 AM
01 Mar, 2025 12:27 AM
24 Feb, 2025 11:24 PM
24 Feb, 2025 08:19 AM
24 Feb, 2025 01:07 AM
23 Feb, 2025 11:42 PM