Copier le lien dans le Presse-papiers
Copié
Jsut to know if there is a known bug on GetLayerSelected method, or do i it wrong?
I would like to know if a given layer is selected, but whatever its selection state, this method always send me back false!
here it is the code:
AIBoolean isSelected = false;
result = sAILayer->GetLayerSelected(layerHandle, &isSelected);
aisdk::check_ai_error(result);
thx, thomas.
AILayerSuite::GetLayerSelected() is only there for AI6.0 -- there is no concept of a 'selected layer' anymore. I assume you're trying to figure out what layers are hilited in the Layers panel? If so, there is no way to get that unfortunately. If you want to know if any art on a layer is selected, use LayerHasSelectedArt() instead.
Copier le lien dans le Presse-papiers
Copié
AILayerSuite::GetLayerSelected() is only there for AI6.0 -- there is no concept of a 'selected layer' anymore. I assume you're trying to figure out what layers are hilited in the Layers panel? If so, there is no way to get that unfortunately. If you want to know if any art on a layer is selected, use LayerHasSelectedArt() instead.
Copier le lien dans le Presse-papiers
Copié
This was not explicitly written in the documentation that this method was obsolete.
But you were totaly right when you assumed what i wanted to do.
Now, i know which method to use, it will be ok.
thx,
Thomas.
Trouvez plus d’idées, d’événements et de ressources dans la nouvelle communauté Adobe
Explorer maintenant