Legacy Documentation: Version 5.5
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

SortingLayer.IDToName

public static string IDToName(int id);

Parameters

id The unique id of the layer.

Returns

string The name of the layer with id or "<unknown layer>" for invalid id.

Description

Returns the unique id of the layer. Will return "<unknown layer>" if an invalid id is given.