• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Photoshop Pixel Variable filled into Freeform Shape

Community Beginner ,
Sep 18, 2024 Sep 18, 2024

Copy link to clipboard

Copied

Hi All,

I have recently tackled a project that I will need to repeat every 6 months or som and I am looking for a way to speed up the process in the future.

I have inlcuded the finished result I am looking to create.

My current process was to use the variables for all text fields and the swatch image on the card. I was hoping that the images I loaded using my data set would crop into the shape of the swatch but it ended up pasting square. I then selected the shape I wanted and created a mask of the image. 

Is there a way for me to fill the grey swatch shape without having to manually create masks I often have to do this for over 300 swatches.

Screenshot 2024-09-18 at 10.17.22 AM.pngScreenshot 2024-09-16 at 4.56.48 PM.png

TOPICS
Actions and scripting , macOS

Views

305

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Sep 18, 2024 Sep 18, 2024

Perhaps you could use a clipping mask before the data merge, but I don't know if the pixel replacement process would break the clipped group.

 

Another option would be to place an inverted white sawtooth shape above the square image pixel replacement layer (presuming that you don't need transparency).

 

Otherwise you will need a second pass batch action or script to post process the PSD files generated by the merge.

Votes

Translate

Translate
Adobe
LEGEND ,
Sep 18, 2024 Sep 18, 2024

Copy link to clipboard

Copied

How are you telling Photoshop what area to use? At some point you have to define a selection, whether by selection, clipping path, erasing unwanted pixels, whatever.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 18, 2024 Sep 18, 2024

Copy link to clipboard

Copied

When using the variables I set the "Swatch_Image" layer as a pixelvariable and mapped it to my iamge from my dataset.

I have included 2 screenshots to hopefully help showcase how this is functioning. This is the first time I have ever used this feature so I apologise if my explanation is not clear (you don't know what you don't know).

As you can see in the dialogue preview this actually creates a perfectly square image and to get the result I wanted I went back in and created a mask manually in the shape of the clipped swatch.

My hope is there is a way for the variable to do this automatically with a smart object or some sort of defined shape.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 18, 2024 Sep 18, 2024

Copy link to clipboard

Copied

Is your pixel variable image a square? You could likely write a script or just change the image. You could also look at using a Smart Object. I've done batches with different aspect ratio images and data-driven graphics just uses whatever image you feed it.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 18, 2024 Sep 18, 2024

Copy link to clipboard

Copied

The Swatch_Image Layer is the shape of the swatch cut out. I thought the pixel variable would "fill" whereever there are pixels. unfortunately it seems to fill to the widest edge of where pixels exist and remains a straight edge.

I attached just the "Swatch_Image" Layer

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 18, 2024 Sep 18, 2024

Copy link to clipboard

Copied

So let's say your document is 1600 x 1200 and the swatch is 200 x 400. Add padding to the swatch to make it fill the layer.

Or you'll need to write a post-processing script to line things up.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 18, 2024 Sep 18, 2024

Copy link to clipboard

Copied

I am not sure I understand. I also am unaware of how to do either of the processes you describe? Is there not away to make the grey shape with the zig zag edges fillable and only insert images into that space?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 18, 2024 Sep 18, 2024

Copy link to clipboard

Copied

I don't think you can do that with data-driven variables. So you would have to do further processing after you create the initial PSD files.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 18, 2024 Sep 18, 2024

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 18, 2024 Sep 18, 2024

Copy link to clipboard

Copied

Perhaps you could use a clipping mask before the data merge, but I don't know if the pixel replacement process would break the clipped group.

 

Another option would be to place an inverted white sawtooth shape above the square image pixel replacement layer (presuming that you don't need transparency).

 

Otherwise you will need a second pass batch action or script to post process the PSD files generated by the merge.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 18, 2024 Sep 18, 2024

Copy link to clipboard

Copied

LATEST

Stephen !! 

Thank you. Sometimes we over think it all. Applying the mask to the sawtooth layer and then using variable worked!

You saved me 30hrs of work every 6 months.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines