pls help me

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

roychen

pls help me

Post by roychen »

my file is cmyk +3 spot channels, name of first spot channel is : 1 , name of second spot channel is : 2. etc...


double 1st spot channel 1,click color input color data such as c100m10y50k40, click ok,click ok.
double 2nd spot channel 2,click color input color data such as c0m60y50k40, click ok,click ok
double 3rd spot channel 3,click color input color data such as c10m10y10k40, click ok,click ok
spor channel option / Density :0

my progress
//spot channel 1 color data c100m10y50k40
var c1=100
var m1=10
var y1=50
var k1=40

//spot channel 2 color data c0m60y50k40
var c2=0
var m2=50
var y2=50
var k2=40

//spot channel 2 color data c10m10y10k40
var c2=10
var m2=10
var y2=10
var k2=40

//================================================spot channel 1 progress

1. select spot channel 1 and click show (channel Visible)
2. get spot channel 1 color data c100m10y50k40
3. compare spot channel 1 color data, such as max(c,m.y.k)=100,
1)max(c1,m1.y1.k1)>= 80 don't laod curvs
2)51<=max(c1,m1.y1.k1)<=79 laod curve a.avc
3)0<= max(c1,m1.y1.k1)<=50 laod curve b.avc
4. select spot channel 1 and clik show(diaplay spot channel )
d)click laod channel as selection,
e)get spot channel 1 color data c100m10y50k40,
f)new layer 1(close all other layer and background)
g)fill layer 1 with spot channel 1 color data. (contents :use forground color(spot channel 1 color data) /bending :mode chose Normal /opacity :100)

//================================================spot channel 2 progress

5. select spot channel 2 and click show (channel Visible)
6. get spot channel 2 color data c0m60y50k40
7. compare spot channel 2 color data, max(c,m.y.k)=60,
1)max(c2,m2.y2.k2)>= 80 don't laod curvs
2)51<=max(c2,m2.y2.k2)<=79 laod curve a.avc
3)0<= max(c2,m2.y2.k2)<=50 laod curve b.avc
8.select spot channel 2 and clik show(diaplay spot channel )
d)click laod channel as selection,
e)get spot channel 1 color data cc0m60y50k40,
f)new layer 2(close all other layer and background)
g)fill layer 2 with spot channel 2 color data. (contents :use forground color(spot channel 2 color data) /bending :mode chose Normal /opacity :100)

//================================================spot channel 3 progress

9. select spot channel 3 and click show (channel Visible)
10.get spot channel 3 color data c10m10y10k40
11. compare spot channel 3 color data, max(c,m.y.k)=100
a)max(c,m.y.k)>= 80 don't laod curvs
b)51<=max(c3,m3.y3.k3)<=79 laod curve a.avc
c)0<= max(c3,m3.y3.k3)<=50 laod curve b.avc
12.select spot channel 3 and clik show(diaplay spot channel )
d)click laod channel as selection,
e)get spot channel 1 color data cc0m60y50k40,
f)new layer 3(close all other layer and background)
g)fill layer 3 with spot channel 3 color data. (contents :use forground color(spot channel 3 color data) /bending :mode chose Normal /opacity :100)




//===fill white (contents :use forground color white /bending :mode chose Normal /opacity :100)

//================================laye 1 and layer2
16 get spot channel 1 color data and get spot channel 2 color data.

//====================================================compare c channel and fill

a)c1=0 or c2=0 don't fill white
b)c1>=c2
1)select layer 1,click show(display layer 1,close all other layer).
2)click cmyk panel,
3)select c channel and click show(c channel Visible). click laod channel as selection,
4)click layer panel select layer 2,
5)click cmyk panel,select c channel,fill white(contents :use forground color white /bending :mode chose Normal /opacity :100)
c)c1<c2
1)select layer 2,click show(display layer 2,close all other layer).
2).click cmyk panel,
3)select c channel and click show(c channel Visible), click laod channel as selection,
4)click layer panel select layer 1,
5)click cmyk panel,select c channel,fill white(contents :use forground color white /bending :mode chose Normal /opacity :100)

//====================================================compare m channel and fill

a)m1=0 or m2=0 don't fill white
b)m1>=m2
1)select layer 1,click show(display layer 1,close all other layer).
2)click cmyk panel,
3)select m channel and click show(m channel Visible). click laod channel as selection,
4)click layer panel select layer 2,
5)click cmyk panel,select m channel,fill white(contents :use forground color white /bending :mode chose Normal /opacity :100)
c)m1<m2
1)select layer 2,click show(display layer 2,close all other layer).
2)click cmyk panel,
3)select m channel and click show(m channel Visible), click laod channel as selection,
4)click layer panel select layer 1,
5)click cmyk panel,select m channel,fill white(contents :use forground color white /bending :mode chose Normal /opacity :100)

//====================================================compare y channel and fill

a)y1=0 or y2=0 don't fill white
b)y1>=y2
1)select layer 1,click show(display layer 1,close all other layer).
2)click cmyk panel,
3)select y channel and click show(y channel Visible). click laod channel as selection,
4)click layer panel select layer 2,
5)click cmyk panel,select m channel,fill white(contents :use forground color white /bending :mode chose Normal /opacity :100)
c)y1<y2
1)select layer 2,click show(display layer 2,close all other layer).
2)click cmyk panel,
3)select y channel and click show(y channel Visible), click laod channel as selection,
4)click layer panel select layer 1,
5)click cmyk panel,select m channel,fill white(contents :use forground color white /bending :mode chose Normal /opacity :100)

//====================================================compare k channel and fill

a)k1=0 or k2=0 don't fill white
b)k1>=k2
1)select layer 1,click show(display layer 1,close all other layer).
2)click cmyk panel,
3)select k channel and click show(k channel Visible). click laod channel as selection,
4)click layer panel select layer 2,
5)click cmyk panel,select m channel,fill white(contents :use forground color white /bending :mode chose Normal /opacity :100)
c)k1<k2
1)select layer 2,click show(display layer 2,close all other layer).
2)click cmyk panel,
3)select k channel and click show(k channel Visible), click laod channel as selection,
4)click layer panel select layer 1,
5)click cmyk panel,select m channel,fill white(contents :use forground color white /bending :mode chose Normal /opacity :100)





//================================laye 1 and layer3
17 get spot channel 1 color data and get spot channel 3 color data.

//====================================================compare c channel and fill

a)c1=0 or c3=0 don't fill white
b)c1>=c3
1)select layer 1,click show(display layer 1,close all other layer).
2)click cmyk panel,
3)select c channel and click show(c channel Visible). click laod channel as selection,
4)click layer panel select layer 3,
5)click cmyk panel,select c channel,fill white(contents :use forground color white /bending :mode chose Normal /opacity :100)
c)c1<c3
1)select layer 3,click show(display layer 3,close all other layer).
2).click cmyk panel,
3)select c channel and click show(c channel Visible), click laod channel as selection,
4)click layer panel select layer 1,
5)click cmyk panel,select c channel,fill white(contents :use forground color white /bending :mode chose Normal /opacity :100)

//====================================================compare m channel and fill

a)m1=0 or m3=0 don't fill white
b)m1>=m3
1)select layer 1,click show(display layer 1,close all other layer).
2)click cmyk panel,
3)select m channel and click show(m channel Visible). click laod channel as selection,
4)click layer panel select layer 3,
5)click cmyk panel,select m channel,fill white(contents :use forground color white /bending :mode chose Normal /opacity :100)
c)m1<m3
1)select layer 3,click show(display layer 3,close all other layer).
2)click cmyk panel,
3)select m channel and click show(m channel Visible), click laod channel as selection,
4)click layer panel select layer 1,
5)click cmyk panel,select m channel,fill white(contents :use forground color white /bending :mode chose Normal /opacity :100)

//====================================================compare y channel and fill

a)y1=0 or y3=0 don't fill white
b)y1>=y3
1)select layer 1,click show(display layer 1,close all other layer).
2)click cmyk panel,
3)select y channel and click show(y channel Visible). click laod channel as selection,
4)click layer panel select layer 3,
5)click cmyk panel,select y channel,fill white(contents :use forground color white /bending :mode chose Normal /opacity :100)
c)y1<y3
1)select layer 3,click show(display layer 3,close all other layer).
2)click cmyk panel,
3)select y channel and click show(y channel Visible), click laod channel as selection,
4)click layer panel select layer 1,
5)click cmyk panel,select y channel,fill white(contents :use forground color white /bending :mode chose Normal /opacity :100)

//====================================================compare k channel and fill

a)k1=0 or k3=0 don't fill white
b)k1>=k3
1)select layer 1,click show(display layer 1,close all other layer).
2)click cmyk panel,
3)select k channel and click show(k channel Visible). click laod channel as selection,
4)click layer panel select layer 3,
5)click cmyk panel,select k channel,fill white(contents :use forground color white /bending :mode chose Normal /opacity :100)
c)k1<k3
1)select layer 3,click show(display layer 3,close all other layer).
2)click cmyk panel,
3)select k channel and click show(k channel Visible), click laod channel as selection,
4)click layer panel select layer 1,
5)click cmyk panel,select k channel,fill white(contents :use forground color white /bending :mode chose Normal /opacity :100)




//================================laye 2 and layer3
18 get spot channel 1 color data and get spot channel 3 color data.

//====================================================compare c channel and fill

a)c2=0 or c3=0 don't fill white
b)c2>=c3
1)select layer 2,click show(display layer 2,close all other layer).
2)click cmyk panel,
3)select c channel and click show(c channel Visible). click laod channel as selection,
4)click layer panel select layer 3,
5)click cmyk panel,select c channel,fill white(contents :use forground color white /bending :mode chose Normal /opacity :100)
c)c2<c3
1)select layer 3,click show(display layer 3,close all other layer).
2).click cmyk panel,
3)select c channel and click show(c channel Visible), click laod channel as selection,
4)click layer panel select layer 2,
5)click cmyk panel,select c channel,fill white(contents :use forground color white /bending :mode chose Normal /opacity :100)

//====================================================compare m channel and fill

a)m2=0 or m3=0 don't fill white
b)m2>=m3
1)select layer 2,click show(display layer 2,close all other layer).
2)click cmyk panel,
3)select m channel and click show(m channel Visible). click laod channel as selection,
4)click layer panel select layer 3,
5)click cmyk panel,select m channel,fill white(contents :use forground color white /bending :mode chose Normal /opacity :100)
c)m2<m3
1)select layer 3,click show(display layer 3,close all other layer).
2)click cmyk panel,
3)select m channel and click show(m channel Visible), click laod channel as selection,
4)click layer panel select layer 2,
5)click cmyk panel,select m channel,fill white(contents :use forground color white /bending :mode chose Normal /opacity :100)

//====================================================compare y channel and fill

a)y2=0 or y3=0 don't fill white
b)y2>=y3
1)select layer 2,click show(display layer 2,close all other layer).
2)click cmyk panel,
3)select y channel and click show(y channel Visible). click laod channel as selection,
4)click layer panel select layer 3,
5)click cmyk panel,select y channel,fill white(contents :use forground color white /bending :mode chose Normal /opacity :100)
c)y2<y3
1)select layer 3,click show(display layer 3,close all other layer).
2)click cmyk panel,
3)select y channel and click show(y channel Visible), click laod channel as selection,
4)click layer panel select layer 2,
5)click cmyk panel,select y channel,fill white(contents :use forground color white /bending :mode chose Normal /opacity :100)

//====================================================compare k channel and fill

a)k2=0 or k3=0 don't fill white
b)k2>=k3
1)select layer 2,click show(display layer 2,close all other layer).
2)click cmyk panel,
3)select k channel and click show(k channel Visible). click laod channel as selection,
4)click layer panel select layer 3,
5)click cmyk panel,select k channel,fill white(contents :use forground color white /bending :mode chose Normal /opacity :100)
c)k2<k3
1)select layer 3,click show(display layer 3,close all other layer).
2)click cmyk panel,
3)select k channel and click show(k channel Visible), click laod channel as selection,
4)click layer panel select layer 2,
5)click cmyk panel,select k channel,fill white(contents :use forground color white /bending :mode chose Normal /opacity :100)


pls help me