PDA

View Full Version : creating scripts in psp9


BarryM
12th March 2006, 02:33 PM
Hi, im wondering how you can create a script in psp9

I have the information that George gave me, but can only see a way of recording a script as you make it, rather than just inputting the data given, if that makes sense.

StagePhotography.co.uk
12th March 2006, 08:46 PM
There's a method to "record" your actions", top right of my screen...

Click the blue circle then the Save button when finished..

BarryM
13th March 2006, 03:15 PM
Thanks George, i eventually got it.

I still have to manually click ok while it runs through the cycle, and opens up the sat windows etc. is that normal ?

StagePhotography.co.uk
13th March 2006, 03:22 PM
the icon to the right of the Paper and quil...

"Execution Mode"... toggle that to off..

It should run with all default settings..

BarryM
13th March 2006, 03:29 PM
ahh tahts great, thanks very much George, oh and Happy Birthday


Ive been trying this script and very impressed although i think i need to finetune it slightly.

Before
http://www.barrymoirphotography.co.uk/train.jpg

After
http://www.barrymoirphotography.co.uk/traintest.jpg

StagePhotography.co.uk
13th March 2006, 04:04 PM
you need to watch where the + (crosses) are on the
Digital Noise Removeal tool....

Depending on where they are, depends on the result of the
"ghosting" on the image...

I'm experimenting at the moment with this..

Stemmy
13th March 2006, 04:05 PM
Oh my god not another one at it !!!:help:

StagePhotography.co.uk
13th March 2006, 04:07 PM
And slowly... But surely... My Plan to take over the world start on a roll!!!!!

*insane laughter*

:butcher:

BarryM
13th March 2006, 04:38 PM
thanks for that, i seen the crosses and wondered what they were about.

StagePhotography.co.uk
13th March 2006, 04:43 PM
you can move them about the picture...

I think they use them as a refernce point for the bluring...

If there's something on it you do not want blured you move the xrosses away from them...

Remember the smaller the photo 500x500 the percent of use might be only 50%... Like faces for portraits...

100% gives a fuller blur...
:)

Stemmy
13th March 2006, 04:45 PM
Seriously though I do I quite like the effect. I might just be tempted to use the history brush and bring back the train a little bit. Its gone too far on the train for me.

Is this in PS2 anywhere or is it just a PSP thing ?

StagePhotography.co.uk
13th March 2006, 04:50 PM
AN OTHER CONVERT!!!! ;)

PS2 doesn't have Clarify..... :)

I'll play with PS and see if I can reproduce..

BarryM
13th March 2006, 05:06 PM
Thanks for that George, what i will say im in awe at is the speed of psp9 compared to cs, i could see me changing over if it continues like this.

StagePhotography.co.uk
13th March 2006, 05:17 PM
Ok here's an edited version of the script...

(in my next post....)

See the changes it has.... :)

StagePhotography.co.uk
13th March 2006, 05:18 PM
from JascApp import *

def ScriptProperties():
return {
'Author': u'',
'Copyright': u'',
'Description': u'',
'Host': u'Paint Shop Pro 9',
'Host Version': u'9.01'
}

def Do(Environment):
# EnableOptimizedScriptUndo
App.Do( Environment, 'EnableOptimizedScriptUndo', {
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Default,
'AutoActionMode': App.Constants.AutoActionMode.Match,
'Version': ((9,0,1),1)
}
})

# Clarify
App.Do( Environment, 'Clarify', {
'Strength': 5,
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Default,
'DialogPlacement': {
'ShowMaximized': False,
'Rect': ((479,217), 323, 353)
},
'PreviewVisible': True,
'AutoProof': False,
'AutoActionMode': App.Constants.AutoActionMode.Match,
'Version': ((9,0,1),1)
}
})

# Clarify
App.Do( Environment, 'Clarify', {
'Strength': 5,
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Default,
'DialogPlacement': {
'ShowMaximized': False,
'Rect': ((479,217), 323, 353)
},
'PreviewVisible': True,
'AutoProof': False,
'AutoActionMode': App.Constants.AutoActionMode.Match,
'Version': ((9,0,1),1)
}
})

# Clarify
App.Do( Environment, 'Clarify', {
'Strength': 5,
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Default,
'DialogPlacement': {
'ShowMaximized': False,
'Rect': ((479,217), 323, 353)
},
'PreviewVisible': True,
'AutoProof': False,
'AutoActionMode': App.Constants.AutoActionMode.Match,
'Version': ((9,0,1),1)
}
})

# Auto Saturation Enhancement
App.Do( Environment, 'AutoSaturationEnhancement', {
'Bias': App.Constants.SaturationBias.MoreColorful,
'Skintones': False,
'Strength': App.Constants.SaturationStrength.Strong,
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Default,
'DialogPlacement': {
'ShowMaximized': False,
'Rect': ((493,171), 323, 396)
},
'PreviewVisible': True,
'AutoProof': False,
'AutoActionMode': App.Constants.AutoActionMode.Match,
'Version': ((9,0,1),1)
}
})

# Auto Saturation Enhancement
App.Do( Environment, 'AutoSaturationEnhancement', {
'Bias': App.Constants.SaturationBias.MoreColorful,
'Skintones': False,
'Strength': App.Constants.SaturationStrength.Strong,
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Default,
'DialogPlacement': {
'ShowMaximized': False,
'Rect': ((493,171), 323, 396)
},
'PreviewVisible': True,
'AutoProof': False,
'AutoActionMode': App.Constants.AutoActionMode.Match,
'Version': ((9,0,1),1)
}
})

# Auto Contrast Enhancement
App.Do( Environment, 'AutoContrastEnhancement', {
'Appearance': App.Constants.Appearance.Bold,
'Bias': App.Constants.ContrastBias.Darker,
'Strength': App.Constants.ContrastStrength.Mild,
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Default,
'DialogPlacement': {
'ShowMaximized': False,
'Rect': ((479,313), 323, 371)
},
'PreviewVisible': True,
'AutoProof': False,
'AutoActionMode': App.Constants.AutoActionMode.Match,
'Version': ((9,0,1),1)
}
})

# Colour Adjust HMS
App.Do( Environment, 'ColorAdjustHMS', {
'HMS': {
'AdjMethod': App.Constants.HMSAdjustmentMethod.Dynamic,
'Highlight': -9,
'Midtone': -29,
'Shadow': -76
},
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Default,
'DialogPlacement': {
'ShowMaximized': False,
'Rect': ((842,283), 413, 415)
},
'PreviewVisible': True,
'AutoProof': True,
'AutoActionMode': App.Constants.AutoActionMode.Match,
'Version': ((9,0,1),1)
}
})

# DigitalCameraNoiseRemoval
App.Do( Environment, 'DigitalCameraNoiseRemoval', {
'SmallDetails': 50,
'MediumDetails': 50,
'LargeDetails': 50,
'Blending': 70,
'Sharpening': 0,
'LockDetailSettings': True,
'NoiseEstimates': ([3,0,139,177,4.19324,2.8045,28.2513,12.5761,26.6357 ,13.7934,1.36038,0.787597
,10.1665,6.12649,7.08483,3.92011,0.688599,0.435081 ,7.1754,4.46536,4.22357,3.14573,1.60962
,1.09255,9.39387,3.57408,4.81313,2.74318,0.905642, 0.591023,1.98244,1.07199,2.10707,1.32765
,0.560532,0.360593,1.793,1.46599,1.06389,0.760075, 1.01146,0.664661,8.2539,3.42647,3.37827
,2.58852,0.522764,0.32356,1.49557,0.753749,1.30222 ,0.690357,0.271097,0.180922,1.12731,0.927096
,0.564436,0.419452],),
'NoiseColorAdjustment': ([4,2520,201,2520],),
'Hue': 0,
'Range': 0,
'MinimalLuminance': -1,
'MaximalLuminance': -1,
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Default,
'DialogPlacement': {
'ShowMaximized': False,
'Rect': ((450,124), 380, 539)
},
'PreviewVisible': True,
'AutoProof': False,
'AutoActionMode': App.Constants.AutoActionMode.Match,
'Version': ((9,0,1),1)
}
})

StagePhotography.co.uk
13th March 2006, 05:23 PM
And on the train example ...

Using 50% Digital noise removal...

The best images to work on are busy ones....

Those with lots of bllue sky and things don't work as good...
i.e. lots of plain colour...

BarryM
13th March 2006, 05:30 PM
Hi George, i just edited my existing one and used that script but i get an unexpected { when i try run it ?

StagePhotography.co.uk
13th March 2006, 05:33 PM
hmmmm i just copied and pasted from the text editor...

Hmmm...

BarryM
13th March 2006, 05:35 PM
im sure its cos the commands are not indented it mentioons something like that too, would that make a diff???

StagePhotography.co.uk
13th March 2006, 05:59 PM
No it should work....

Hmmmm can't reproduce your error...

Just go through the steps in the script
as you read it with the settings...

Saving your own version as your own script..

You can read the settings in the text...

BarryM
13th March 2006, 06:11 PM
yeah ive just been doing this, thanks again George.

the error i got was

Executing RunScript
File "C:\Documents and Settings\Barry\My Documents\My PSP Files\Scripts-Restricted\test.PspScript", line 4
return {
^
IndentationError: expected an indented block

StagePhotography.co.uk
13th March 2006, 06:19 PM
Hmmmmmm not sure...

bash on with recording your own...

I'll remember this in future and instead of scripts,
give a full description...