Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

layer selected

Enthusiast ,
Apr 20, 2009 Apr 20, 2009

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.

TOPICS
SDK
900
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Guide , Apr 22, 2009 Apr 22, 2009

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.

Translate
Adobe
Guide ,
Apr 22, 2009 Apr 22, 2009

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Apr 22, 2009 Apr 22, 2009
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines