RetouchPRO

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

Struggling with values needed to make a selection.

Reply
 
Thread Tools
  #1  
Old 04-13-2010, 05:43 PM
marcel_911's Avatar
marcel_911 marcel_911 is offline
Junior Member
 
Join Date: Apr 2010
Posts: 2
Struggling with values needed to make a selection.

Hi, I am new to photoshop CS4 javascript scripting. (I am using a Mac but I don't think that makes any difference here)

I am trying to write a simple script to take a single input image and then split it into three and save it.

I haven't got very far yet. While I am practicing I am just creating a new document rather than loading one in.

I have set my ruler units to CM and created a new document of 80cm x 60cm at 180dpi and made a new art layer. This is working fine.

I want to make a selection for example of 20cm x 20cm starting from the top left corner.

I tried the obvious

activeDocument.selection.select([[0,0], [20,0], [20,20], [0,20]], SelectionType.REPLACE)

All I get is a tiny selection in the top left, but nothing like 20cm x 20cm.

I read in the manual about Unit Values but couldn't work out what they were talking about.

If I have my ruler set to CM why is the selection not being made in CM?

It seems to be PIXELS regardless of unit type.

Am I supposed to work out 20cm into Pixels myself?

Thanks
Reply With Quote top
Reply

  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
Make Your Christmas Pictures Glow igot2pman Photo Retouching 3 12-09-2008 03:16 PM
First time using D&B to make the skin smoother... neofragoso Photo Retouching 4 11-26-2008 12:59 PM
Spot Selection & Neutralization curtism Photo Restoration 4 08-26-2008 04:50 AM
selection plugins for photoshop Nacoya Software 6 05-01-2008 12:23 AM
select shape Peg Hidden Power Support 7 08-29-2004 07:10 PM


All times are GMT -6. The time now is 03:59 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