Search found 10 matches

by Megals
Wed Mar 15, 2023 2:28 pm
Forum: Help Me
Topic: Change rectangle hex color
Replies: 8
Views: 6175

Re: Change rectangle hex color

Now it is working! Thank you so much!
by Megals
Tue Mar 14, 2023 10:07 pm
Forum: Help Me
Topic: Change rectangle hex color
Replies: 8
Views: 6175

Re: Change rectangle hex color

attached it
by Megals
Tue Mar 14, 2023 3:07 pm
Forum: Help Me
Topic: Change rectangle hex color
Replies: 8
Views: 6175

Re: Change rectangle hex color

Hi,

thank you for the code, but It is not working for me. This is what i did:
- New File, added a rectangle.
- Put the code into a jsx file and drag and dropped it.
- Added a alert to the code to make sure it gets executed.
- i made sure the rectangle layer is active
- Photoshop 2022
by Megals
Tue Mar 14, 2023 9:16 am
Forum: Help Me
Topic: Change rectangle hex color
Replies: 8
Views: 6175

Re: Change rectangle hex color

Thank you for your reply.

I want to change the color of an existing rectangle myLayer, by a hex string e.g. #FF0000.

Best regards
by Megals
Mon Mar 13, 2023 12:47 pm
Forum: Help Me
Topic: Change rectangle hex color
Replies: 8
Views: 6175

Change rectangle hex color

Hi there, i try to change the color of an existing rectangle without luck. The hex string is a variable. This is my code so far: var fillColor = new SolidColor(); fillColor.rgb.hexValue = hex.substring(1); layerBaseColor.fillPath( fillColor ); fillColor.red = parseInt(hex.substring(1, 3), 16); fillC...
by Megals
Sat Feb 25, 2023 1:10 pm
Forum: Help Me
Topic: frame tool bounds always 0
Replies: 2
Views: 1385

Re: frame tool bounds always 0

Thank you, it is working!
by Megals
Sat Feb 11, 2023 9:38 pm
Forum: Help Me
Topic: frame tool bounds always 0
Replies: 2
Views: 1385

frame tool bounds always 0

Hello,

i want to get the bounds of the frame tool but it is always 0. If there is an image it shows the bounds of the image. Is there a way to get the bounds of the empty frame?

Best regards
Chris
by Megals
Wed Jan 18, 2023 8:34 pm
Forum: Help Me
Topic: Text moves after content change
Replies: 5
Views: 1809

Re: Text moves after content change

ok great that there is a solution! Is there a way to use a layer by name with Document Object Model:

Code: Select all

var textLayer = activeDocument.artLayers.getByName('text');
by Megals
Wed Jan 18, 2023 6:22 pm
Forum: Help Me
Topic: Text moves after content change
Replies: 5
Views: 1809

Re: Text moves after content change

Hi,

i packed a zip with 2 psd and the jsx for you to test. I also checked with 2023 but its still the same.
by Megals
Wed Jan 18, 2023 3:04 pm
Forum: Help Me
Topic: Text moves after content change
Replies: 5
Views: 1809

Text moves after content change

Hi Ps-scripts Forum, when i change the content of a pathed text layer, the whole text moves like 50px to the bottom. After this code, the whole layer moves: layer.textItem.contents = text; - The original file (12283 x 9134) does not have this issue. It only happens to the resized file(720 x 535) - I...