Copy link to clipboard
Copied
Hello -
I'm back with a question (since it seems not possible directly via scripting).
The question is quite simple, can we "show ALL hidden objects/items" via scripting?
I tried this but it doesn't not work:
#target Illustrator
var myDoc = app.activeDocument;
for (var p=0; p < myDoc.pathItems.length; p++ ) {
var item = myDoc.pathItems
;
item.hidden = false;
}
Do I have to call an action?
Thank you…
- Dimitri
this method unhides all hidden objects, but it won't unhide layers or objects in hidden layers, so if your layer is hidden you have to make it visible first
app.executeMenuCommand('showAll');
Copy link to clipboard
Copied
Layers and sublayers and groups, compound paths … and so on, too?
What kind of objects are in your document? Please show something.
Copy link to clipboard
Copied
Hello pixxxel schubser -
Not the layers
Nor the sublayers
I just want to show unhidden "objects" (eg. boxs, textfields, …) that could be hidden into my document.
regards,
- Dimitri
Copy link to clipboard
Copied
this method unhides all hidden objects, but it won't unhide layers or objects in hidden layers, so if your layer is hidden you have to make it visible first
app.executeMenuCommand('showAll');
Copy link to clipboard
Copied
Hey Carlos -
THANK YOU very much as a lot of time… ![]()
![]()
- Dimitri
Copy link to clipboard
Copied
you're welcome, glad to help
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more