set dict/coll object name with variable
Hi,
I have a patch that reads json data into a dict object (via js). I would like to be able to copy/clone that dict to a new dict (or coll would suffice) using naming variables from a counter. My desired output is: a metro reads gets dataset into a 'primary' dict, then that dict gets copied to "dictname-1", before the metro triggers again and the next dataset is read into the primary dict, which then gets copied to "dictname-2", etc. The part I'm stuck on is how to pass variable names ("dictname-1, dictname-2, etc.) INTO a dict or coll object to create the new dict/coll object.
Any help is much appreciated!
Away from keyboard.
What happens if you open the inspector of your [dict], select the parameter with its name and then click the "+" button at the bottom of the insoector ?
@schlam wonderful! This does what I need. I am able to precede the "name" object paramter with a dict.unpack to grab one of the dict values which then passes into the "name" object parameter as the new dict name. Most excellent. Thanks so much!