I want to get the current brush tool name
I want to get the current brush tool name
I'm not referring to this method
function getTool(){
var ref = new ActionReference();
ref.putEnumerated( charIDToTypeID("capp"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
var cTool = typeIDToStringID(executeActionGet(ref).getEnumerationType(stringIDToTypeID('tool')));
return cTool;
} But it is through brush attributes that we can determine whether he does not have tools or whether he has smudging or eraser tools
This is very important to me. Of course, selecting the user and then obtaining the tool can also yield what kind of tool it is, but it is not easy to use because a paintbrush without a tool will be used with the current tool, which is not suitable
Thanks for your help


