### Author Topic: Simple but harmful pattern  (Read 475 times)

#### Sergey_Dobrij

• Full Member
• Posts: 110
##### Simple but harmful pattern
« on: December 09, 2021, 01:30:28 PM »
Hello everyone! Please tell me if there is an expression or a macro to individually move each column in the padding settings? I understand that the pattern is quite simple, but I am having problems with it. My head is spinning when it comes to padding.) I would be grateful for any help!

#### Paul Roberts

• iToo Software
• Hero Member
• Posts: 2828
##### Re: Simple but harmful pattern
« Reply #1 on: December 09, 2021, 02:15:39 PM »
Hi,

Please take a look at the attached. The simplest solution, in this case, was to do the following:

- Model the two sizes of tile, position them as they would be in the final pattern and then align their pivots.
- Wire them to a compose operator set to Group mode
- Add a Transform operator after the Compose node
- Adjust the Z-Rotation and the Right Padding until the gaps between the adjacent segments are closed
- Adjust to Top Padding to remove the gap between the rows.
- Optionally, adjust the General>Clipping Area > Z Rotation property to align the rows. This could be the negative value of the Z rotation value used above.

I hope that helps,
Paul.
« Last Edit: December 09, 2021, 02:31:37 PM by Paul Roberts »
Paul Roberts
iToo Software

#### Sergey_Dobrij

• Full Member
• Posts: 110
##### Re: Simple but harmful pattern
« Reply #2 on: December 09, 2021, 02:27:18 PM »
Hi,

Please take a look at the attached. The simplest solution, in this case, was to do the following:

- Model the two sizes of tile, position them as they would be in the final pattern and then align their pivots.
- Wire them to a compose operator set to Group mode
- Add a Transform operator after the Compose node
- Adjust the Z-Rotation and the Left Padding until the gaps between the adjacent segments are closed
- Adjust to Top Padding to remove the gap between the rows.
- Optionally, adjust the General>Clipping Area > Z Rotation property to align the rows. This could be the negative value of the Z rotation value used above.

I hope that helps,
Paul.
Hi! Thank you very much. I also walked roughly that way. But alas, to no avail!

#### Sergey_Dobrij

• Full Member
• Posts: 110
##### Re: Simple but harmful pattern
« Reply #3 on: December 09, 2021, 02:30:02 PM »
Hi,

Please take a look at the attached. The simplest solution, in this case, was to do the following:

- Model the two sizes of tile, position them as they would be in the final pattern and then align their pivots.
- Wire them to a compose operator set to Group mode
- Add a Transform operator after the Compose node
- Adjust the Z-Rotation and the Left Padding until the gaps between the adjacent segments are closed
- Adjust to Top Padding to remove the gap between the rows.
- Optionally, adjust the General>Clipping Area > Z Rotation property to align the rows. This could be the negative value of the Z rotation value used above.

I hope that helps,
Paul.

I decided to go this way. ( https://forum.itoosoft.com/railclone-pro-(*)/pattern/ )
Now I will learn a new way!
« Last Edit: December 09, 2021, 02:40:10 PM by Sergey_Dobrij »

#### Dragan

• Hero Member
• Posts: 1295
##### Re: Simple but harmful pattern
« Reply #4 on: December 09, 2021, 03:27:20 PM »
Hi,

Please take a look at the attached. The simplest solution, in this case, was to do the following:

- Model the two sizes of tile, position them as they would be in the final pattern and then align their pivots.
- Wire them to a compose operator set to Group mode
- Add a Transform operator after the Compose node
- Adjust the Z-Rotation and the Right Padding until the gaps between the adjacent segments are closed
- Adjust to Top Padding to remove the gap between the rows.
- Optionally, adjust the General>Clipping Area > Z Rotation property to align the rows. This could be the negative value of the Z rotation value used above.

I hope that helps,
Paul.

Yeah, I`m still amazed by this solution 3 years later!!!

#### Sergey_Dobrij

• Full Member
• Posts: 110
##### Re: Simple but harmful pattern
« Reply #5 on: December 09, 2021, 03:54:45 PM »
Tell me please. The easiest way to solve this problem is if I have a small piece of geometry with a larger width. I tried your way, but it is not intuitive. Or I do not understand something correctly Thank you!

#### Sergey_Dobrij

• Full Member
• Posts: 110
##### Re: Simple but harmful pattern
« Reply #6 on: December 09, 2021, 03:56:59 PM »
Hi,

Please take a look at the attached. The simplest solution, in this case, was to do the following:

- Model the two sizes of tile, position them as they would be in the final pattern and then align their pivots.
- Wire them to a compose operator set to Group mode
- Add a Transform operator after the Compose node
- Adjust the Z-Rotation and the Right Padding until the gaps between the adjacent segments are closed
- Adjust to Top Padding to remove the gap between the rows.
- Optionally, adjust the General>Clipping Area > Z Rotation property to align the rows. This could be the negative value of the Z rotation value used above.

I hope that helps,
Paul.

Yeah, I`m still amazed by this solution 3 years later!!!
Hi! I unfortunately did not know him). Live for 100 years - study for 100 years!

#### Paul Roberts

• iToo Software
• Hero Member
• Posts: 2828
##### Re: Simple but harmful pattern
« Reply #7 on: December 09, 2021, 03:58:24 PM »
Apologies, I don't think this little trick will work if the small tile is not also square.
Paul Roberts
iToo Software

#### Sergey_Dobrij

• Full Member
• Posts: 110
##### Re: Simple but harmful pattern
« Reply #8 on: December 09, 2021, 04:00:17 PM »
I repeated it again with square ones and it turned out, no problem!)

#### Sergey_Dobrij

• Full Member
• Posts: 110
##### Re: Simple but harmful pattern
« Reply #9 on: December 09, 2021, 04:03:34 PM »
I repeated it again with square ones and it turned out, no problem!)
It's a pity. For the second day I cannot find a simple and effective solution (

#### Paul Roberts

• iToo Software
• Hero Member
• Posts: 2828
##### Re: Simple but harmful pattern
« Reply #10 on: December 09, 2021, 04:47:37 PM »
Here's another version that uses some maths to calculate the padding required to offset each row. There's also an expression being used to calculate the angle, but you could just as easily set that manually by eye.

Best.
Paul
Paul Roberts
iToo Software

#### Sergey_Dobrij

• Full Member
• Posts: 110
##### Re: Simple but harmful pattern
« Reply #11 on: December 09, 2021, 04:57:47 PM »
Maybe someone will come in handy). Made the simplest expression. That does not rotate in two places. And the tile always stays horizontal.

#### Sergey_Dobrij

• Full Member
• Posts: 110
##### Re: Simple but harmful pattern
« Reply #12 on: December 09, 2021, 04:59:03 PM »
Here's another version that uses some maths to calculate the padding required to offset each row. There's also an expression being used to calculate the angle, but you could just as easily set that manually by eye.

Best.
Paul
Paul, I'm really grateful to you! Thanks!