Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hi everyone,
Trying to find a solution to remove objects from a InExclude List from a CommandData plugin.
inExcludeData = self.linkObjs.GetData() objCount = inExcludeData.GetObjectCount() for i in range(objCount): print inExcludeData.ObjectFromIndex(activeDocument, i) print objCount inExcludeData.DeleteObject(i)
I can see that that the count goes down and assume the list is being cleared, but the GUI still shows the objects. How can I update it please? Apologies if this has been solved before, as I couldn't find the thread or answer.
Thank you in advance!
Andre
Hi Andre,
by calling GetData() you receive a copy of the InExcludeData. By writing the changed data back via SetData() it should work as expected.
GetData()
InExcludeData
SetData()
I turned this thread into a question.
Cheers, Andreas
Amazing! Thank you again Andreas!