GetName

Returns the name of the variable.

Syntax

GetName(var)

Parameters

Parameter

Type

Description

var

variableReference

Reference to the variable

Return

Returns the name of the variable.

Examples

Python

import nex
doc = nex.GetActiveDocument()
# get the first neuron variable
var = nex.GetVar(doc, 1, "neuron")
# get the variable name
name = nex.GetName(var)

NexScript

doc = GetActiveDocument()
% get the first neuron variable
var = GetVar(doc, 1, "neuron")
% get the variable name
name = GetName(var)