# How to use image sampler RGB to change the position of points or lattice structure!

**URL:** <https://discourse.mcneel.com/t/how-to-use-image-sampler-rgb-to-change-the-position-of-points-or-lattice-structure/92994>\
**Category:** Grasshopper\
**Tags:** 3d, grasshopper, imagesampler\
**Created:** [November 30, 2019, 1:29pm UTC](https://discourse.mcneel.com/t/how-to-use-image-sampler-rgb-to-change-the-position-of-points-or-lattice-structure/92994 "2019-11-30T13:29:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![megha.meelu](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/megha.meelu/32/354995_2.png) [@megha.meelu](https://discourse.mcneel.com/u/megha.meelu)\
**Post date:** [November 30, 2019, 1:29pm UTC](https://discourse.mcneel.com/t/how-to-use-image-sampler-rgb-to-change-the-position-of-points-or-lattice-structure/92994/1 "2019-11-30T13:29:58Z")

</div>

hi,  
I’m trying to change the spacing or density of a grid based on an rgb image, i’ve tried a thread in which david ruetten posted a way to work with circle but this doesnt really work with 3d organic mesh. any help is hugely appreciated

 ![Annotation%202019-11-30%20132931](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/4/c/4c0d87bf51b439e8339af11df0b191bee3e3e9c1.png)

---

<div class="post-metadata">

**Author:** ![megha.meelu](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/megha.meelu/32/354995_2.png) [@megha.meelu](https://discourse.mcneel.com/u/megha.meelu)\
**Post date:** [November 30, 2019, 4:01pm UTC](https://discourse.mcneel.com/t/how-to-use-image-sampler-rgb-to-change-the-position-of-points-or-lattice-structure/92994/2 "2019-11-30T16:01:47Z")

</div>

@DavidRutten please help

---

<div class="post-metadata">

**Author:** ![DavidRutten](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/davidrutten/32/755688_2.png) [@DavidRutten](https://discourse.mcneel.com/u/DavidRutten)\
**Post date:** [November 30, 2019, 8:29pm UTC](https://discourse.mcneel.com/t/how-to-use-image-sampler-rgb-to-change-the-position-of-points-or-lattice-structure/92994/3 "2019-11-30T20:29:08Z")

</div>

It’s the weekend and I’m at home with a cold. Please post your file, please link the mentioned discussion. Maybe I’ll feel good enough on Monday to come in to the office.

---

<div class="post-metadata">

**Author:** ![Adrienne](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/adrienne/32/743615_2.png) [@Adrienne](https://discourse.mcneel.com/u/Adrienne)\
**Post date:** [May 27, 2026, 2:01pm UTC](https://discourse.mcneel.com/t/how-to-use-image-sampler-rgb-to-change-the-position-of-points-or-lattice-structure/92994/4 "2026-05-27T14:01:52Z")

</div>

Hi- has anyone figured out how to complete this? I want to use a pressure map to create different densities in a lattice structure. This may not be the best way to do it, but just wondering if this is possible.

---

<div class="post-metadata">

**Author:** ![Edr](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/edr/32/684630_2.png) [@Edr](https://discourse.mcneel.com/u/Edr)\
**Post date:** [May 27, 2026, 3:14pm UTC](https://discourse.mcneel.com/t/how-to-use-image-sampler-rgb-to-change-the-position-of-points-or-lattice-structure/92994/5 "2026-05-27T15:14:41Z")

</div>

Definitely possible to do this and there are many, many ways for that.  
Image is just an attractor.  
For example use twisted boxes or crystallon or pufferfish or panellingTools to deform voxels and map lattice to them (basically whole Transform\>Morph tab in GH)  
or remeshByColor to get different density mesh and assign lattice to faces.  
or use isopod, axolotl and scale TPMS cells

probably many more solutions exist.
