Code: Select all
var meshPath = "/Users/[USERNAME]/Library/Preferences/Adobe Photoshop 2025 Settings/Liquify Last Mesh.psp";
var meshFile = new File(meshPath);
if (meshFile.exists) {
var desc = new ActionDescriptor();
desc.putPath(charIDToTypeID("LqMD"), meshFile);
executeAction(charIDToTypeID("LqFy"), desc, DialogModes.NO);
}The script listener returns this (it also fails running on the mask and doesn't apply the last mesh used):
Code: Select all
var descriptor = new ActionDescriptor();
descriptor.putInteger( stringIDToTypeID( "commandID" ), -377 );
descriptor.putBoolean( stringIDToTypeID( "kcanDispatchWhileModal" ), true );
executeAction( stringIDToTypeID( "invokeCommand" ), descriptor, DialogModes.NO );