Pass "current layer" information onto grasshopper? [SOLVED]

Hi. I want to display my active layer as text at a prominent (absolute) position in the viewport… (i keep forgetting what layer on all the time)

i want to use the human component “Render Text to screen” for displaying…
i havent found a solution to get the data from Rhino into GH though…

@anika.boeller, have you seen this ?

_
c.

hm. i have no previous experience in scripting/programming…
read through but cant make it work yet.

im tangling with this at the moment:
http://developer.rhino3d.com/wip/api/RhinoCommonWin/html/P_Rhino_DocObjects_Tables_LayerTable_CurrentLayer.htm

Hi @anika.boeller, just curious, is the display of the current layer beside the Grid Snap toggle in the StatusBar not usable for you ?

_
c.

i know its there… but i have this idea that maybe if its more present it ll enhance my “clean” modeling speed. and would like to try this through a script/grasshopper for a start… btw also the osnap toggle eg for disabled projected snaps… are way to small/out of sight down there.
if im drawing and i d have visual feedback for these options at the cursor, it would reduce a lot of undos…

have you tried to pull the current layer property into gh?

also cannot open the rhino6 gh python editor… strange…

works now… i had to erase ghpython2 out of the components folder… there was another python.gha file…

getting current layer: