I want to store the names of locators in a string array. The locators are created by clicking in the viewport - I used a draggerContext to get the coordinates of the mouse.
The problem is, where do I store the names of the created locators to use them later in an other part of the script? Global variables have to have a constant value and a local variable in the sampleContextPress-function would be recreated each time of execution.
so i cant use something like:
$locAr[size($locAr)] = `spaceLocator`;
float $pressPosition = `draggerContext -q -anchorPoint sampleContext`;
spaceLocator; //right now the names are not stored
move -ws $pressPosition $pressPosition $pressPosition;
if ( `contextInfo -ex sampleContext` )
deleteUI -tc sampleContext;
Many thanks for your help!