Go Back   RetouchPRO > Tools > Software > Photoshop Scripting
Register Blogs FAQ Site Nav Search Today's Posts Mark Forums Read

Photoshop Scripting Learning and sharing for all platforms


Thread Tools
Old 01-04-2005, 11:14 AM
babedieboe babedieboe is offline
Junior Member
Join Date: Dec 2004
Posts: 14

I have CS, so does my friend.
So i made a script in JS that does loads of things.......
One of them is that i am making a selection and filling it with a color, like
beneath, BUT it works on 3 different pc's with CS, but at my friends
PC it just draws a 1x2 pixels (hxw) square, instead of filling the whole
layer (doc.width and doc.height).....this puzzles me a LOT!
He reinstalled many times already, still nogo......
Any thoughts? the problem seems the size of selection (,SelectionType.REPLACE,0,false);

//create the 4 backgroundlayers with colors
var selectionBounds = [[0,doc.height],[doc.width,doc.height],[doc.width,0],[0,0]];
for (var b = 0;b<4;b++) {
var newLayerRef = doc.artLayers.add(); = layerBGArrNames[b];

var randomColor = new SolidColor; = layerBGArrColors[b][0]; = layerBGArrColors[b][1]; = layerBGArrColors[b][2];,SelectionType.REPLACE,0,false);


randomColor = null;

Reply With Quote top
Old 01-12-2005, 06:32 AM
xbytor xbytor is offline
Join Date: Aug 2004
Posts: 35
check the prefs

Verify that your ruler units preferences are set explicitly and consistently. And remember that not all apis will take all units. Some, apparently, require pixels units. Units are not dealt with very well in JS.

Reply With Quote top
Old 01-12-2005, 06:58 AM
babedieboe babedieboe is offline
Junior Member
Join Date: Dec 2004
Posts: 14
that did it: i set the units to pixels runtime, et voila! thx m8!
Reply With Quote top

  RetouchPRO > Tools > Software > Photoshop Scripting

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange layer problem BenHardy Image Help 7 09-23-2007 06:58 PM
Strange B/W color desaturation saberlancer Software 6 01-29-2007 01:07 AM
Something strange going on In PS Swampy Software 5 11-11-2006 12:20 PM
Another strange texture - what is it? Caitlin Image Help 9 05-04-2005 06:17 PM
Strange XP cable modem behavior jeaniesa Software 10 08-25-2002 09:32 AM

All times are GMT -6. The time now is 06:55 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
Copyright © 2016 Doug Nelson. All Rights Reserved