Question
Javascript - get current brush shape name
Hello,
I'm look for a way to get the current tool name, like "Hard Round 30 1"
I find how to get the preset name, like "paintbrushTool" but not the paintbrushTool's name.
getTool();
function getTool(){
var descc = new ActionDescriptor();
var ref = new ActionReference();
ref.putEnumerated( charIDToTypeID("capp"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
var cTool = typeIDToStringID(executeActionGet(ref).getEnumerationType(stringIDToTypeID('tool')));
alert(cTool);
}Have you any idea ?
Thanks
