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

Making a Smart object Box with nothing in it for a script.

New Here ,
Mar 09, 2024 Mar 09, 2024

Copy link to clipboard

Copied

Im very new to photoshop so i apologize if this is a dumb question, but I am currently using a script to make mock up designs in photoshop that essentially takes a files and fits it to a designated smart object you have set up in the mock up, however, I also am in the process of making PNG's of the same designs for the actual product I am making.  I have to res-size to a specific area,  copy, paste and mirror the design on the other side of the page and the process takes a lot out of my day for hundreds of designs. 

 

I am trying to speed up this process by using the same mock up script to just place the design in 2 smart object boxes that are already sized and in place instead of 1 however I cannot figure out how to make a smart object box that has transparent background and there is nothing in it considering this is not for a mockup that usually would have a background to it. I can use a white background and make the smart object that way,but when I try to "remove background" afterwards it doesnt remove the white parts on the insides of the design, creating more work. If I could just make a square box with transparent background and make that box a smart object, i could then use the script to paste all the designs into the boxes with no issue but I dont know how to do this. Ive been searching every thread i can find but not finding a fix for this. Google is telling me it is in fact possible to make a smart object with nothing in it but its not telling me HOW to do this. Also I need a solution that allows color, some of the solutions I saw told me to change the blend but it only works for all black and white designs. 

 

Please let me know if Im wasting my time searching and just need to tough it out, or if there is something im missing. 

 

 

 

 

TOPICS
Windows

Views

158
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
Adobe
Community Expert ,
Mar 09, 2024 Mar 09, 2024

Copy link to clipboard

Copied

A new blank layer can be converted to a smart object.

 

app.activeDocument.artLayers.add();
app.activeDocument.activeLayer.name = "My Smart Object Layer Name";
executeAction( stringIDToTypeID( "newPlacedLayer" ), undefined, DialogModes.NO );

 

Votes

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
New Here ,
Mar 09, 2024 Mar 09, 2024

Copy link to clipboard

Copied

Ok, Ill be honest im not sure what the java code you put there does or how to use it, but I figured out how to make the blank layer a smart object, the problem im having now is the script it not considering it a layer and skips past them even though they are on top. If your able to direct me to the correct way to use the code you placed I would greatly appreciate it. I see several places to add script code but not sure what im doing

Votes

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 ,
Mar 09, 2024 Mar 09, 2024

Copy link to clipboard

Copied

LATEST

Do you mean script or perhaps you really mean action? The code is ExtendScript (JavaScript), not "Java" which is totally different.

 

You said script, which made me presume a basic level of scripting knowledge, which I am now getting the impression you don't have.

 

If you meant action, please post a screenshot of the action panel with all relevant action steps disclosed/expanded and visible.

Votes

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