Copy link to clipboard
Copied
I have a dedicated object. How do I get its path and name in the library if the selected object is located in several folders in the library? I searched in the documentation but didn't find anything, maybe I just didn't notice the desired object
I was thinking something like this:
fl.trace(fl.getDocumentDOM().selection[0].pathInLibrary) /*The output should be: 'LOGO/qwerTTT/asd'*/
Hi.
Try this:
fl.trace(fl.getDocumentDOM().selection[0].libraryItem.name);
Regards,
JC
Copy link to clipboard
Copied
Hi.
Try this:
fl.trace(fl.getDocumentDOM().selection[0].libraryItem.name);
Regards,
JC
Copy link to clipboard
Copied
Thank You
Copy link to clipboard
Copied
You're welcome.