|Photoshop Scripting Learning and sharing for all platforms|
| ||Thread Tools|
Struggling with values needed to make a selection.
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?
|Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Make Your Christmas Pictures Glow||igot2pman||Photo Retouching||3||12-09-2008 02:16 PM|
|First time using D&B to make the skin smoother...||neofragoso||Photo Retouching||4||11-26-2008 11:59 AM|
|Spot Selection & Neutralization||curtism||Photo Restoration||4||08-26-2008 03:50 AM|
|selection plugins for photoshop||Nacoya||Software||6||04-30-2008 11:23 PM|
|select shape||Peg||Hidden Power Support||7||08-29-2004 06:10 PM|