Copy link to clipboard
Copied
hello,
for example,i wanted to get layer's name and visible,but don't get all layer property because of watse times.when the getting one's feasible use "putProperty" but more than two is fail.How to get more than 2 layer properties please?
There is no way to get two using one call to Photoshop. Just call Photoshop twice, once for each property you want. The time hit on calling for all properties is what you want to avoid!
Copy link to clipboard
Copied
I do not know how to use action manager executeActionGet, But I would thing you woyl need to target some layer like the activelayer to get layer information. I do not see any layertarget pramenter for yoy GetIbfo function. if yoy are goinf after the active layer wiul the not be:
alert(app.activeDocument.activeLayer.name + " Visible= " + app.activeDocument.activeLayer.visible);
Some Object needs to be addressed
Copy link to clipboard
Copied
thanks,That's not what I wanted,
Copy link to clipboard
Copied
Is there a way please?such as " ActionList"
Copy link to clipboard
Copied
It does not work two either. More than two does not work, but does not cause errors. What is your error?
You can use it. But there will be access not to all properties.
var r = new ActionReference();
r.putEnumerated(stringIDToTypeID("layer"), stringIDToTypeID("ordinal"), stringIDToTypeID("targetEnum"));
d = executeActionGet(r);
Slowly working for "application" and "document";
Copy link to clipboard
Copied
There is no way to get two using one call to Photoshop. Just call Photoshop twice, once for each property you want. The time hit on calling for all properties is what you want to avoid!