On 16/03/2013 at 00:50, xxxxxxxx wrote:
Your plugin tag must be attached to an object in the scene, it can't exist on its own. So in your python tag, you could do something like:
* look for the first active object in the scene
* check to see if it has your plugin tag attached to it
* if it does, get the list
How you get the list depends on what it is. If it's an InExclude list, you can get the tag's BaseContainer, then get the list from that. If it's an array (as you showed in your code) you'll have to make it available to other objects in some way. Then the python tag can get hold of the list and do whatever with it.
It's easy in C++ but I'm not sure if the same method works in Python. In C++ you would probably make the array private, then provide getter/setter functions to let another object access it. Or do it the dirty way of just making the array public, then anything can access it but without any checks on the plugin's part as to what they do with it.