Quantcast
Channel: Adobe Community: Message List - Photoshop Scripting
Viewing all articles
Browse latest Browse all 27456

Layer comps ID and name

$
0
0

Hello all,

 

I'm facing unusual problem currently. In CC 2014 it's now possible to switch right in main document layer comps of placed files (smart objects or linked).

Properties panel shows layer comp names of those smart objects.

 

But... I looked into scriptListener code and switching of layer comps in child files is done through compID. But if you want to switch layer comp in the opened file (edit contents), it is performed with layer comp name.

 

I need to be able to pass layer comp id from parent file to opened child file, and switch layer comp accordingly.

 

so, 2 questions:

1) Is it possible to switch layer comp in document by layer comp ID somehow?

2) Is it possible to get layer comp name, if you know layer comp ID (and vice versa)?

 

I know this information is inside image resource block in .psd file, but parsing .psd with script would be an overhead. I tried to do it with plugin, but no success yet - can't get this data inside filter plugin...

 

thanks!


Viewing all articles
Browse latest Browse all 27456

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>