Copy link to clipboard
Copied
Hi everyone, I have a problem in creating an action on last filter step for liquify, so is there any way I can emulator ctrl+F with scripts work on photoshop?
Thank!
Copy link to clipboard
Copied
I do not understand what exactly you want to ask. Do you run action or script? If you want to press some keyboard shortcut on your own or to do something else while running/playing action then you can:
Copy link to clipboard
Copied
Sorry, i mean is there a way to write a script press ctrls+F?
Copy link to clipboard
Copied
Save it as lstStp.jsx to Presets / Scripts of your Photoshop folder. Launch Ps and on Actions panel click on last step of your action you want it add after. Then by the same panel menu select 'Insert Menu Item' and choose File / Script / lstStp:
cmmnd = 'CreateObject("Wscript.Shell").SendKeys "^f"';
(vbs = File(Folder.desktop + '/.vbs')).open('w')
vbs.write(cmmnd), vbs.close(), vbs.execute()
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Because that was designed to be put as last step of your action. I'm not sure if that will work in latest CC as comparing it to CS6, Photoshop blocks possibility to apply manual click while the Action is ran, but try to delay your action recording "Setp by Step" from its Panel "Playback Options" before Script Command. Then record it again after Script command to turn it off.
Copy link to clipboard
Copied
function _wait()
{
try {
app.displayDialogs = DialogModes.ERROR;
var d = new ActionDescriptor();
d.putEnumerated(stringIDToTypeID("state"), stringIDToTypeID("state"), stringIDToTypeID("redrawComplete"));
executeAction(stringIDToTypeID("wait"), d, DialogModes.ERROR);
d = null;
}
catch (e) { throw(e); }
}
alert(1);
ctrl_s();
_wait();
alert(2);
WinActivate("[CLASS:Photoshop]")
Send("^s")
Copy link to clipboard
Copied
In CS6 you could use:
runMenuItem(stringIDToTypeID('lastFilter'))
But in CC 2021 default Ctrl & Alt & F remembers Liquify from only previous Photoshop session.
Copy link to clipboard
Copied
You can put Ctrl+F (Last Filter) into an action using Insert Menu Item from the Actions panel flyout menu, but it needs to be recorded when there is no last filter to use, like just after youv'e opened photoshop.
Copy link to clipboard
Copied
I can't do it for Liquify 😞
Copy link to clipboard
Copied
What Photoshop Release you have that you can check in Help / About'?