Which layer is the target layer?
how can determine layer among in ->layersdescriptor structures corresponds target layer?
in photoshop cc x64 pc
-- read channel numbers seem unique
-- channels have ->target=1
(edit after more work layersdescriptor)
the information presented has lot of errors , omissions, such it's impossible
in principal display layers same way photoshop does. invisible "pass through"
layers listed visible. layers "stroke" special effects indistinguishable
from normal layers.
layers "stroke" special effects indistinguishable
from normal layers.
here how find stroke (keyframefx, desclayer starting layer descriptor, in case code if effects visible)
haskey=0;
error = spsactiondescriptor->haskey(desclayer, keylayereffects, &haskey);
if (error) goto returnerror;
error = spsactiondescriptor->getboolean(desclayer, keylayerfxvisible, &effvisible);
if (error) goto returnerror;
if (haskey && effvisible){
error = spsactioncontrol->stringidtotypeid("classlayerfxvisible", &runtimeclassid);
if (error) goto returnerror;
error = spsactiondescriptor->getobject(desclayer, keylayereffects, &runtimeclassid, &desceffects);
if (error) goto returnerror;
// frame
error = spsactiondescriptor->haskey(desceffects, keyframefx, &haskey);
if (error) goto returnerror;
if (haskey)
{
error = getframeattributes(index, info);
}
//etc.
}
regards,
momir zecevic
More discussions in Photoshop Plugin and Companion App SDK
adobe
Comments
Post a Comment