Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now