Layer ID question

Xer0botXer0

Senpai
Hi,

I can create instances on layers or by depth, by using either the layer ID or the layers name, how can I get the layer ID and does the layer ID change for any reason or can I confidently use the same ID ?
 
Top