THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/07/2011 at 19:52, xxxxxxxx wrote:
Hy there,
I cycle through the names of the plugins in order to retrieve the container of the Optimize command. The documentation says, FilterPluginList() returns a list of BasePlugin(). But I get a BaseList2D ...
tools = plugins.FilterPluginList(c4d.PLUGINTYPE_COMMAND, True)
tool = None
for t in tools:
if t.GetName().find("Optimize") != -1:
print t.GetName()
break
print t.GetId()
print t.GetData().GetData(c4d.MDATA_OPTIMIZE_TOLERANCE)
Another way I tried is directly getting the tool-data container, which failed too (returns None) :
td = plugins.GetToolData(doc,c4d.MCOMMAND_OPTIMIZE)
So ... whats up here ?
Thank you,
maxx