This sample file shows how you can sample values from layers (in this case a dynamic noise layer) to use in generation of repeated elements. For example like in this pattern varying the number of shrinking hexagons in each point in the pattern based on the sampled darkness value in the corresponding point in the noise layer.

