Field effecting collection of objects

Hey community!

I´m trying to affect a collection of objects with a field POP weight → transform POP (to achieve a classic mograph displacement effect based on the field weight).

Is there a way to do this? Can´t seem to merge them and access the objects XYZ through the Merge POP.

Thanks!

Best

Hi @Lime_23,

not sure if this is what you like, but using the mapping functionality of the Transform POP’s Map page might work? You use the Field POP as the reference for the OP parameter, choose the Weight attribute as the Element and apply this to the transform parameter.


See attached.

cheers
Markus
TransformMap.tox (1.3 KB)

Hey Markus,

thank you for your fast answer! <3

I managed to effect the P of the (in your case) spheres. I´d love to be able to change the total position of the object based on the field, without affecting the P and distorting the object.

I´ll add an example image of a GLSL shader i programmed to displace primitives based on centerPrim attributes (Here all the displaced surfaces are first flat and get displaced by a Ramp TOP going in as a sampler2D in a GLSL Mat:

Basically I want to achieve a displacement of the whole objects in POP space.

I can do it already with a grid POP on which Spheres fe. are copied. Then by transforming the Grid POP by having a Field POP run in a Transform POP, I can basically do this to instanced/copied objects. I´d like to do it without having to copy them.

Ideally have a random collection of objects merged and then affect eachs position in xyz space by the field POP.

Hope my question is clearer now, feel free to ask if something is not understood :slight_smile:

Thanks for taking your time to answer!

Best
Bojan

Hi @Lime_23,

if I understand it right you would need to know the centroid of each of your shapes. This might be the main issue but in my Sphere example, I’m using the Analyze POP to calculate it and then using an Attribute Combine POP add this centroid attribute back to each shape.

Now I can use this centroid attribute as the Field Attribute Scope reference in the Field POP and use the result to transform - via the Transform POP’s Map page - the whole shape.

Not sure if this is the most effective but best I could think of right now.
Hope this makes sense
cheers
Markus

base_TransformShape.tox (1.4 KB)

1 Like

Hey dear Markus,

thanks a lot for this rather interesting solution. Wouldn´t have thought of this approach.

I´ll fiddle around with it and see where I get.

I appreciate your time and effort <3

Best
Bojan