THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 27/05/2011 at 06:53, xxxxxxxx wrote:
I removed an object from the scene that was attached to an InExcludeData.
After removing it (using obj.Remove()) it stays in the InExcludeData as None.
Is this a bug ?
On 27/05/2011 at 06:55, xxxxxxxx wrote:
Is it normal that a SelectionListDialog (from c4d.gui) can only display c4d.BaseObject s ?
On 01/06/2011 at 09:13, xxxxxxxx wrote:
Can you please provide an example so I can check out whats wrong. Thx!
On 01/06/2011 at 10:08, xxxxxxxx wrote:
Here an example Code to the SelectionListDialog - issue for the Script-Manager.
And in this example PythonTag I wrote, you can see there is a function "GetObjectsFromInExcludeData" which makes sure that no Objects returned from the InExclude Data as "None" will be added to the list.
Without testing if the returned Object is not None, the SelectionListDialog raises an error.
(The TreeView in the Description was just for testing purpose)
Go forward as follows:
1. Create the Tag
2. Add some Objects to the "Objects" InExclude Data List.
3. Delete the Objects from the Document, not from the List, the Objects should be removed from the List now as well.
4. Click on the "Remove" Button, the Objects appear in the Dialog.
5. Click on it once again and take a look into the Console, the SelectionListDialog did raise an error that it only wants to have c4d.BaseObject's in the overloaded iterateable, but it found "None" in it.
On 01/06/2011 at 18:49, xxxxxxxx wrote:
In ObjectFromIndex pass the current document instead of None. This ensures you only get an object back if its still in the document.