CreateProperty - How to?

I am trying to make a selection system via Renderpick.

I want to take data from the selection, and add it to a list, and then continue to add each selection made so long as it is not already in the list.

I started with the intention of using .storage() as a way to do this - except I ran into the need for deeply dependable lists. I saw this as a suggestion in another post by @Ivan

My issue now is two fold;
First - When I make an extension and set the create property function to “deep” it kicks back and error in textport;

Error retrieving extension for /objects_style: (Extension 1) File “/objects_style/extension”, line 23, in init
NameError: name ‘deep’ is not defined
File “/objects_style/examine1”

Second - I am unable to call the function from within the container with the extention… I have tried using

me.parent().createProperty = [1,2,3]

with the error being…

Traceback (most recent call last):
File “</objects_style/FILL_DATA:op(‘/objects_style/FILL_DATA’).run()>”, line 1
td.tdError: File “/objects_style/FILL_DATA”, line 3
AttributeError: ‘td.containerCOMP’ object has no attribute ‘createProperty’
Results of run operation resulted in exception.
python >>>

Any help with an example of how to use this function would be very appreciated!

Thanks!

The dependable argument to createProperty is the string "deep", not a variable deep.

The createProperty function is a member of the TDFunctions library, not of the extension or operator itself. There is an example in the default extension if you use the Component Editor to create it for you. Generally you will do something like this to use it:

import TDFunctions as TDF

TDF.createProperty(...

These wiki pages will help you…