Hello,
Thanks for reaching out.
There is a method that can help "getStackForThumbnail()".
This is the sample usage:
//If a thumbanil belongs to a stack, we can get the stack object using getStackforThumbnail()
var visibleThumbanils = app.document.visibleThumbnails;
if (visibleThumbanils.length > 0)
{
var thumbnailObj = visibleThumbanils[0];
// Call getStackForThumbnail to get the stack object containing this object
var stackObject = app.document.getStackForThumbnail(thumbnailObj);
if( stackObject )
{
$.writeln("This thumbnail is part of this stack object");
}
else
{
$.writeln("This thumbnail is not part of any stack object");
}
}
This code is part of the Developer SDK samples, particularly file "SnpManageStacks.jsx"
Regards,
Deepak