Is there a way to get a list of the tool presets in photoshop?
how would I go by getting a list of the tool preset that are currently load in PS?
thanks in advance ![]()
how would I go by getting a list of the tool preset that are currently load in PS?
thanks in advance ![]()
I managed to figure it out, found this bit of code in a different thread and modified it to return a list of tool preset names.
function getToolPresetNames() {
var ref = new ActionReference();
ref.putEnumerated( charIDToTypeID("capp"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
var appDesc = executeActionGet(ref);
var List = appDesc.getList(stringIDToTypeID('presetManager'));
var presetNames=[];
var list = List.getObjectValue(7).getList(charIDToTypeID('Nm '));
for (var i = 0; i < list.count; i++) {
var str = list.getString(i);
presetNames.push(str); }
return presetNames;
}
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.