Getting layer status in Alias API

Getting layer status in Alias API

sgeggie
Contributor Contributor
681 Views
1 Reply
Message 1 of 2

Getting layer status in Alias API

sgeggie
Contributor
Contributor

I'm using the Alias API to retrieve model data from .wire files. I have a file here with two layers, the empty default layer and another layer, "what", which contains geometry. "what" is set to be invisible, but is currently selected in Alias.

Using the API, I can detect that "what" is invisible with the AlLayer::invisible() method. However, the AlLayer::isPicked() method always returns false. So even though the geometry is visible in Alias (due to its layer being selected), I cannot detect this with the API. I have attached the file.

Is there some other way to detect that this geometry is currently visible in Alias, despite having a layer with "invisible" status?

 

Thanks in advance.

0 Likes
Accepted solutions (1)
682 Views
1 Reply
Reply (1)
Message 2 of 2

sgeggie
Contributor
Contributor
Accepted solution

The solution was to use AlUniverse::creationLayer() rather than isPicked.

0 Likes