Auto-Profile under scripted Photoshop?

questions about practical use of Neat Image
Post Reply
Osmium
Posts: 6
Joined: Sun Jun 19, 2005 2:48 pm

Auto-Profile under scripted Photoshop?

Post by Osmium »

I have a visual basic application which drives my workflow. It runs Photoshop and invokes Neat Image (as an action) for selected ISOs.

Since NI V5.0, I've found that I prefer the results of auto-profiling rather than relying on canned profiles. (Well done folks!) But, is there a way to invoke NI via a photoshop action and have it also run an auto-profile on the image to start with?
-Roy
Osmium
Posts: 6
Joined: Sun Jun 19, 2005 2:48 pm

Post by Osmium »

Oh heck. Sorry... I just rtfm'd and found the answer!
-Roy
Osmium
Posts: 6
Joined: Sun Jun 19, 2005 2:48 pm

Post by Osmium »

Then again... Can't get it working properly.

This is the scripting listener log for an auto profile.

Running this from vb actually gets the last saved profile as indicated by the FfpN parameter. What do I need to do to get the auto profile to run?


DIM objApp
SET objApp = CreateObject("Photoshop.Application")
REM Use dialog mode 3 for show no dialogs
DIM dialogMode
dialogMode = 3
DIM id31
id31 = objApp.StringIDToTypeID( "d9543b0c-3c91-11d4-97bc-acb0d0204936" )
DIM desc5
SET desc5 = CreateObject( "Photoshop.ActionDescriptor" )
DIM id32
id32 = objApp.CharIDToTypeID( "SfpN" )
Call desc5.PutString( id32, "Auto profile image" )
DIM id33
id33 = objApp.CharIDToTypeID( "SrpN" )
Call desc5.PutString( id33, "Remove all noise.nfp" )
DIM id34
id34 = objApp.CharIDToTypeID( "FfpN" )
Call desc5.PutString( id34, "C:\Program Files\Neat Image\PLUGIN\RecentProfile.dnp" )
DIM id35
id35 = objApp.CharIDToTypeID( "FrpN" )
Call desc5.PutString( id35, "C:\Program Files\Neat Image\PRESETS\Remove all noise.nfp" )
DIM id36
id36 = objApp.CharIDToTypeID( "BpaN" )
Call desc5.PutBoolean( id36, True )
DIM id37
id37 = objApp.CharIDToTypeID( "BmaN" )
Call desc5.PutBoolean( id37, False )
DIM id38
id38 = objApp.CharIDToTypeID( "BfaN" )
Call desc5.PutBoolean( id38, False )
DIM id39
id39 = objApp.CharIDToTypeID( "BsaN" )
Call desc5.PutBoolean( id39, False )
Call objApp.ExecuteAction( id31, desc5, dialogMode )
-Roy
NITeam
Posts: 3173
Joined: Sat Feb 01, 2003 4:43 pm
Contact:

Post by NITeam »

Osmium wrote:Running this from vb actually gets the last saved profile as indicated by the FfpN parameter. What do I need to do to get the auto profile to run?
Doesn't it run as it is, after loading the last used profile? Auto Profile takes more time than just loading a profile from the disk. See how long the action works and you will see if Auto Profile is applied or not.

Vlad
Osmium
Posts: 6
Joined: Sun Jun 19, 2005 2:48 pm

Post by Osmium »

I don't think so. And I'm saying that more from looking at the end result rather than the timing.

If I run the plug-in manually, press the auto-profile button, then choose the "remove all noise" preset, the result is significantly different from running the above action. Running the above action gets me the same result as using the canned profile manually. So, I conclude that the action is simply using the saved profile.
-Roy
NITeam
Posts: 3173
Joined: Sat Feb 01, 2003 4:43 pm
Contact:

Post by NITeam »

In fact neither you nor me are completely right in this particular case.

What happens is Auto Profile is in fact applied but it is not followed by Auto Fine-Tune. This is a bug, which we have just fixed and now Auto Fine-Tune should be applied in the same way it is applied when you use Auto Profile in the plug-in GUI.

Please redownload the software, it should work correctly now.

Thank you,
Vlad
Osmium
Posts: 6
Joined: Sun Jun 19, 2005 2:48 pm

Post by Osmium »

That did it! Thank you.

Now I can go play with a somewhat less drastic preset than "remove all noise"...
-Roy
Post Reply