Jump to content

Transform based on color in copy sop?


Recommended Posts

I'm trying to create a mosaic from an image similar to the one I've attached below.

I've got a grid plugged into a copy sop with boxes, and a point node on the grid setting the color based on an image using the pic expression. I've also selected some of the brighter greys and turned them white using a group with $CR > 0.6 && $CR < 0.9, and then applying that to another point sop.

My problem now is that similar to the image, I would like for the boxes - well circles in the image - that are initially grey to scale down, preferable based on how dark they are. But I'm really stumped as to how to achieve this effect. I don't know of anyway to use the group I created (or any other similar ones) in a stamp attribute in the copy sop (only thing I could think of at the moment.)

Can anyone point me in the right direction?


Link to comment
Share on other sites

run it into a vopsop over the grid with the color information.

get the luminance of the color on the grid, plug it into a ramp node and the result of that into a multiplayer node so you can scale the value afterwards and all of that to a attribute node where you create a new attribute.

Now you can use that attribute to set the scale through the copy stamp techniques.

and you can add how much they are scaled and the difference between values with the multiplayer and which color values to scale more with the ramp.

That should give you what you want.



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...