Load selected images AND Apply Action from Browser

Here everybody can post his problems with PhotoLine
gennadiy
Mitglied
Posts: 84
Joined: Tue 23 Jan 2018 10:06
Location: Russia

Load selected images AND Apply Action from Browser

Post by gennadiy »

Is it possible to do this for one action from the browser? Sometimes it would be useful such an opportunity.
Martin Huber
Entwickler
Entwickler
Posts: 4226
Joined: Tue 19 Nov 2002 15:49

Re: Load selected images AND Apply Action from Browser

Post by Martin Huber »

The context menu of the browser has the command "Apply Action". Is that what you are looking for?
gennadiy
Mitglied
Posts: 84
Joined: Tue 23 Jan 2018 10:06
Location: Russia

Re: Load selected images AND Apply Action from Browser

Post by gennadiy »

I would like to be opened in the editor, and then the action applied to the open.
For example, I need to create a copy of the layer and apply some filter to the selected from the browser.
Martin Huber
Entwickler
Entwickler
Posts: 4226
Joined: Tue 19 Nov 2002 15:49

Re: Load selected images AND Apply Action from Browser

Post by Martin Huber »

You can do that with a simple script:

Code: Select all

Dim pl
Dim doc

Set pl = CreateObject("PhotoLine.Application")

For Each doc In pl
	doc.DoOperation "Action", "Name", "DocumentAction"
Next
This script applies the action named "DocumentAction" to each opened document.
To execute the script you will have to save it as text file with the extender ".vbs", for example "ActionToDocuments.vbs". Double-clicking in Explorer will execute it.

So the needed steps are:
- Select the files in PhotoLine's Browser
- Open them using the context menu
- Execute the script by double-clicking it in Explorer.

Martin
User avatar
shijan
Mitglied
Posts: 1671
Joined: Mon 23 Dec 2019 15:21
Location: Ukraine

Re: Load selected images AND Apply Action from Browser

Post by shijan »

In most cases PLD is your final destination. So instead of apply action to every opened file, i personally just use Batch Convert tool, apply action from there, and save to folder as PLD. In single click this gives me folder with pre-setted files for future editing.
PhotoLine UI Icons Customization Project: https://www.pl32.com/forum3/viewtopic.php?f=3&t=6302