Workaround for Nik Plugins on PSP X6

Corel Paint Shop Pro

Moderator: trueblue

Workaround for Nik Plugins on PSP X6

Postby jsj on Tue Sep 03, 2013 5:06 pm

I've the Nik Collection of plugins and some of them didn't work on PSP X6.

Notably the Nik Color Efex Pro 4 and Nik Silver Efex Pro 2.

But I found a workaround to use them without any problem. I've made two scripts that execute the filters, send them the image being edited inside PSP X6 and, on return, they create a new layer with the result of the filters applied. Original layers left unttouched.

This scripts works with the latest version of the Nik Collection plugins. I've not tested them with previous versions.

In the attached ZIP:

(Version 2 Scripts here: viewtopic.php?f=56&t=51492#p275433)

Nik_Plugins_Scripts.zip
Nik Color Efex Pro 4 and Silver Efex Pro 2 scripts
(2.22 KiB) Downloaded 681 times


there are two files: Nik_ColorEfexPro4.PspScript and Nik_SilverEfexPro2.PspScript.

Just copy them to: C:\Users\<Your_Windows_User>\Documents\Corel PaintShop Pro\16.0\Scripts-Trusted

You must edit both scripts (with Notepad or similar text editor) and check the line that says:

Code: Select all
filtroExe = u'C:\\Program Files\\Google\\Nik Collection\\Color Efex Pro 4\\Color Efex Pro 4.exe'


Or

Code: Select all
filtroExe = u'C:\\Program Files\\Google\\Nik Collection\\Silver Efex Pro 2\\Silver Efex Pro 2.exe'


The path must point to the path where you have the Nik Collection installed. Those ones are the paths by default so it must work out-of-the-box.

On PSP X6 just execute those scripts. Both of them must appear on the "Script" Toolbar (View -> Toolbars -> Script)

PSPX6_Script_Toolbar_1.JPG
PSP X6 Script Toolbar


There is only a flaw with these scripts and is when you exit the Nik Efex filter via "Cancel" a layer with a copy of the image being edited is also created. But is a minor flaw that I want to fix in future versions.
Last edited by jsj on Sun Nov 24, 2013 10:28 am, edited 2 times in total.
jsj
 
Posts: 10
Joined: Thu Aug 29, 2013 7:07 pm
operating_system: Windows 7 Home Premium
System_Drive: C
32bit or 64bit: 64 Bit

Re: Workaround for Nik Plugins on PSP6

Postby Samoreen on Tue Sep 03, 2013 6:00 pm

Thanks a lot for sharing this code. The scripts work flawlessly.
Patrick
Samoreen
 
Posts: 12
Joined: Wed Aug 28, 2013 12:14 pm
Location: Samoreau, France
operating_system: Windows 7 Ultimate
System_Drive: C
32bit or 64bit: 64 Bit

Re: Workaround for Nik Plugins on PSP6

Postby Nklightart on Wed Sep 04, 2013 2:46 am

Wonderful JSJ, it works perfectly for me on 32-bit X6. Thanks a lot.
Now you must also find a workaround for the color shift issue observed in X6 also ;). I believe its better to rely on you (as X6 is publicly released without any fix even after many users pointing out the issue)
Nklightart
 
Posts: 4
Joined: Fri Aug 23, 2013 9:14 am
operating_system: Windows 7 Home Premium
System_Drive: C
32bit or 64bit: 32 Bit

Re: Workaround for Nik Plugins on PSP6

Postby jsj on Wed Sep 04, 2013 8:59 am

I'm happy seeing those scripts are usefull.

Nklightart about color shift issue I hope Corel fix it via a Service Pack because it's a core problem (I think). :roll:
jsj
 
Posts: 10
Joined: Thu Aug 29, 2013 7:07 pm
operating_system: Windows 7 Home Premium
System_Drive: C
32bit or 64bit: 64 Bit

Re: Workaround for Nik Plugins on PSP6

Postby pwt on Wed Sep 04, 2013 5:34 pm

jsj

This is excellent! The scripts work well. I was wondering if I could make a couple of changes if you could point me in the right direction.

1 I think it would be better if the script used the tif format for the temporary file to transfer to the plugin to avoid any loss of quality.

2 I would like to use the 64bit version and I can easily change the script to call the 64bit version of Nik. But this is pointless unless I transfer a 16bit tif file.

3 Is there any way to make the script work in X5?

Sorry for the questions but your scripts are a real breakthrough for those of us using the nik plugins.
pwt
 
Posts: 6
Joined: Sat Sep 24, 2011 10:55 am
operating_system: Windows 7 Home Premium
System_Drive: C
32bit or 64bit: 64 Bit

Re: Workaround for Nik Plugins on PSP6

Postby jsj on Thu Sep 05, 2013 12:22 pm

Ok pwt I will check later when at home. Here I don't have PSP X6 installed.

But 1 is a matter of change some parameters in the command that saves the temporary file. 2 is trivial.

This code is the one that saves the temporary file:

Code: Select all
App.Do( Environment, 'FileSaveCopyAs', {
            'Encoding': {
                'JPG': {
                    'Variant': App.Constants.JpegFormat.Lossless,
                    'CompressionFactor': 1,
                    'ChromaSubSampling': App.Constants.ChromaSubSampling.YCC_1x1_1x1_1x1,
                    'EXIF': True,
                    'EmbedJPGICC': False
                    }
                },
            'FileName': ficheroTmp,
            'FileFormat': App.Constants.FileFormat.JPG,
            'FormatDesc': u'JPG JPEG ',
            'WorkingMode': 0,
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Silent,
                'AutoActionMode': App.Constants.AutoActionMode.Match,
                'Version': ((16,0,0),1)
                },
            'DefaultProperties': []
            })


You can record a macro that saves your actual image to 16bit TIFF, save it and edit with a text editor to see which parameters exactly the command "FileSaveCopyAs" have.

About 3 I don't know. I only have PSP X4 and X6 but not X5. I guess that if you change the line 'Host Version' with 15.0 instead 16.0 it would work:

Code: Select all
def ScriptProperties():
    return {
        'Author': u'JSJ',
        'Copyright': u'Copyright (c) 2013 Login:',
        'Description': u'Procesa la imagen actual con Color Efex Pro 4 y devuelve el resultado en una nueva capa',
        'Host': u'PaintShop Pro',
        'Host Version': u'16.00'
        }


You can record and save a macro in PSP X5 and edit it to check this.

Anyway I will check myself all of these later.
jsj
 
Posts: 10
Joined: Thu Aug 29, 2013 7:07 pm
operating_system: Windows 7 Home Premium
System_Drive: C
32bit or 64bit: 64 Bit

Re: Workaround for Nik Plugins on PSP6

Postby bobadger on Thu Sep 05, 2013 4:56 pm

Scripts work great on my Win8 machine with both 32 and 64 PSP6...Thanks!!!!!!!!!!!!
bobadger
 
Posts: 2
Joined: Mon Jan 30, 2012 9:40 am
operating_system: Vista Home Premium
System_Drive: D
32bit or 64bit: 64 Bit

Re: Workaround for Nik Plugins on PSP6

Postby jsj on Thu Sep 05, 2013 6:38 pm

Here is a new version of the scripts:

Nik_Plugins_Scripts_v2.zip
Nik Color Efex Pro 4 and Silver Efex Pro 2 scripts (v2.0)
(2.58 KiB) Downloaded 677 times


On this version I've added two options:

1.- Use the 32 bit or 64 bit version of Nik Color Efex Pro 4 or Nik Silver Efex Por 2 filters. Just uncomment the line that applies to your preferences and comment the other (by default uses 32 bit version for max compatibility):

Code: Select all
    # 32 bits
    filtroExe = u'C:\\Program Files\\Google\\Nik Collection\\Color Efex Pro 4\\Color Efex Pro 4.exe'
    # 64 bits
    #filtroExe = u'C:\\Program Files\\Google\\Nik Collection\\Color Efex Pro 4\\Color Efex Pro 4 (64-Bit)\\Color Efex Pro 4.exe'


2.- Option to save temporary image in JPEG or TIF, just change the following option (TIF with losseless compression by default); thanks @pwt for the indication:

Code: Select all
    formatoFichero = 'TIF'


If you want JPEG instead (faster save and load times but a minor loss of quality then put 'JPEG' instead of 'TIF')
jsj
 
Posts: 10
Joined: Thu Aug 29, 2013 7:07 pm
operating_system: Windows 7 Home Premium
System_Drive: C
32bit or 64bit: 64 Bit

Re: Workaround for Nik Plugins on PSP6

Postby pwt on Thu Sep 05, 2013 7:33 pm

Brilliant! This is ideal and works well with the 64bit version. Thank yu so much.

Philip
pwt
 
Posts: 6
Joined: Sat Sep 24, 2011 10:55 am
operating_system: Windows 7 Home Premium
System_Drive: C
32bit or 64bit: 64 Bit

Re: Workaround for Nik Plugins on PSP6

Postby Khuri on Sun Sep 15, 2013 11:21 am

Great work, thank you for those scripts. They work perfectly! :)
Khuri
 
Posts: 12
Joined: Mon Dec 17, 2012 10:12 pm
operating_system: Windows 7 Professional
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: MSI P55-GD65
processor: Intel Core i5 750
ram: 12 GB
Video Card: nVidia Geforce GTX 560 Ti
sound_card: Creative SB X-Fi
Hard_Drive_Capacity: 1260 GB
Monitor/Display Make & Model: BenQ XL2410T, BenQ FP73G

Re: Workaround for Nik Plugins on PSP6

Postby OldRadioGuy on Tue Sep 17, 2013 5:38 pm

Thanks, jsj.

Your scripts are much appreciated!

Bob
PSPX7 | Photo Ninja | DxO Optics Pro 9 | ACDSee 7 | Capture One Pro 7 |Olympus E-M1 & E-M5 cameras
User avatar
OldRadioGuy
 
Posts: 140
Joined: Sun Feb 22, 2009 5:33 pm
Location: USA
operating_system: Windows 7 Home Premium
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Dell 0YJPT1 A00
processor: Intel Core i7-3770 3.40 GHZ 8 virtual cores
ram: 16 GB
Video Card: AMD Radeon HD 7770
sound_card: Realtec High Definition Audio
Hard_Drive_Capacity: 2 TB
Monitor/Display Make & Model: Samsung 23" HD 1920x1080 px

Re: Workaround for Nik Plugins on PSP6

Postby steje44 on Mon Sep 23, 2013 9:59 pm

Perfect ! Works out of the box !
steje44
 
Posts: 29
Joined: Sun Apr 15, 2012 5:56 pm
Location: Germany
operating_system: Windows 7 Home Premium
System_Drive: C
32bit or 64bit: 64 Bit

Re: Workaround for Nik Plugins on PSP6

Postby monkey26 on Wed Oct 09, 2013 9:58 am

thanks for the scripts!
Is it possible to make a script to execute the Knoll Light Factory 3.2 filter?
This filter use to work in x4, but not in x5 and x6! It just doesn't apply any flare on an image!
monkey26
 
Posts: 2
Joined: Tue Oct 08, 2013 11:50 am
operating_system: Windows 7 Ultimate
System_Drive: C
32bit or 64bit: 32 Bit

Re: Workaround for Nik Plugins on PSP6

Postby jsj on Wed Oct 09, 2013 9:03 pm

monkey26 wrote:thanks for the scripts!
Is it possible to make a script to execute the Knoll Light Factory 3.2 filter?
This filter use to work in x4, but not in x5 and x6! It just doesn't apply any flare on an image!


Really can't answer that question because I don't have that plugin.

The short is: if Knoll Light Factory can be executed standalone, passing the image via command line arguments, then yes, it's possible to script.
jsj
 
Posts: 10
Joined: Thu Aug 29, 2013 7:07 pm
operating_system: Windows 7 Home Premium
System_Drive: C
32bit or 64bit: 64 Bit

Re: Workaround for Nik Plugins on PSP6

Postby monkey26 on Thu Oct 10, 2013 8:34 am

Unfortunatly, Knoll Light Factory isn't a standalone App, It's a photoshop plugin filter. :oops:
Thanks anyway...
monkey26
 
Posts: 2
Joined: Tue Oct 08, 2013 11:50 am
operating_system: Windows 7 Ultimate
System_Drive: C
32bit or 64bit: 32 Bit

Next

Return to Paint Shop Pro

Who is online

Users browsing this forum: No registered users and 5 guests