# How to randomize texture position?

**URL:** <https://forums.sketchup.com/t/how-to-randomize-texture-position/320192>\
**Category:** Dynamic Components\
**Created:** [March 22, 2025, 4:14am UTC](https://forums.sketchup.com/t/how-to-randomize-texture-position/320192 "2025-03-22T04:14:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![henique](https://avatars.discourse-cdn.com/v4/letter/h/a6a055/32.png) [@henique](https://forums.sketchup.com/u/henique)\
**Post date:** [March 22, 2025, 4:14am UTC](https://forums.sketchup.com/t/how-to-randomize-texture-position/320192/1 "2025-03-22T04:14:33Z")

</div>

![image](https://global.discourse-cdn.com/sketchup/original/3X/5/6/56854dcec67477befc1123aeadee60b9742db8c1.jpeg)  
How can I randomize texture position for this vertical louvres?  
I create a subgroup thats resize the texture correctly, but i Would like to see different positions for each component (both are equals).

- i’ve tried randomize the “group” Z position, but didn’t make what i was thinking LOL

---

<div class="post-metadata">

**Author:** ![bifterx](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/bifterx/32/44878_2.png) [@bifterx](https://forums.sketchup.com/u/bifterx)\
**Post date:** [March 22, 2025, 12:04pm UTC](https://forums.sketchup.com/t/how-to-randomize-texture-position/320192/2 "2025-03-22T12:04:58Z")

</div>

I don’t believe that is possible for components.  
I have this scenario a lot and you just have to set everything up and then explode the textured sections into a separate group and use something like Depatternize from Eneroths Texture Positioning Tools.

I have to do this sort of thing all the time for timber cladding type setups.

 ![scene34](https://global.discourse-cdn.com/sketchup/original/3X/4/1/41db26bfda807a6161e91acfb6f4fcbb4f4b9b9a.jpeg)

---

<div class="post-metadata">

**Author:** ![henique](https://avatars.discourse-cdn.com/v4/letter/h/a6a055/32.png) [@henique](https://forums.sketchup.com/u/henique)\
**Post date:** [March 22, 2025, 10:39pm UTC](https://forums.sketchup.com/t/how-to-randomize-texture-position/320192/3 "2025-03-22T22:39:19Z")

</div>

I read an option (but i don’t know where were) using the  
native attb:

LenY=NumbY\*parent!LenY  
personalized attb:  
NumbY=if(direction=1,CHOOSE(ind,1,1,1,2),CHOOSE(index,1,1,2,2))

index =if( parent!copy\<4, parent!copy+1, parent!copy-int(parent!copy/4)\*4+1)

or some thing like that.
