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?
Auto-Profile under scripted Photoshop?
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 )
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
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.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?
Vlad
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.
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
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
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