microbians com
Community Beginner
microbians com
Community Beginner
Activity
‎Sep 30, 2024
03:45 AM
My problem was maybe different, is that I had selected the Select > Edit in quick mask mode, so there is not possiblity to select the button Select and Mask... deselecting the Edit in quick mask mode, let's made use of the button again.
... View more
‎Sep 30, 2024
03:39 AM
Same here, the Select and mask is always grey out, it can0t be selected.
... View more
‎Mar 08, 2024
04:16 AM
1 Upvote
I added a control to mantain visibility of the layer, just because the action excecution change it to visible always: function isLayerShape(l) {
var activeDoc = app.activeDocument;
var currentVisiblity = l.visible;
activeDoc.activeLayer = l;
var s2t =stringIDToTypeID;
var r = new ActionReference();
r.putEnumerated(s2t("layer"), s2t("ordinal"), s2t("targetEnum"));
var d = new ActionDescriptor();
d.putObject(s2t("object"), s2t("object"), executeActionGet(r));
var obj = executeAction(s2t("convertJSONdescriptor"), d).getString(s2t("json"));
l.visible=currentVisiblity;
return obj.indexOf("pathBounds")!=-1;
}
... View more
‎Feb 29, 2024
10:12 AM
1 Upvote
Sorry finally is solved. I used a sort of simmilar code based on that correct answer. Thanks! function isLayerShape(l) { app.activeDocument.activeLayer = l; var s2t =stringIDToTypeID; var r = new ActionReference(); r.putEnumerated(s2t("layer"), s2t("ordinal"), s2t("targetEnum")); var d = new ActionDescriptor(); d.putObject(s2t("object"), s2t("object"), executeActionGet(r)); var obj = executeAction(s2t("convertJSONdescriptor"), d).getString(s2t("json")); return obj.indexOf("pathBounds")!=-1; }
... View more
‎Feb 29, 2024
03:47 AM
That's right, there is no property to distinguish between a shape or a solid color fill .... I need a solution.
... View more
‎Feb 29, 2024
03:41 AM
I'm wrong grouped is anothe thing... 😕 I don't know who to distinguish shapes and solidcolor layer filters....
... View more
‎Feb 29, 2024
03:38 AM
The only thing I get is that layer property grouped is false in case of shapes, and true in case of colorfill (also other kind of smart filter layers like levels etc.)... but I'm not sure
... View more
‎Feb 29, 2024
03:32 AM
Is it possible to distinguish between a solidfill filter and a rectangular shape? I try the LayerKind property without luck, both say is a LayerKind.SOLIDFILL
... View more