How to add a tree view to a Description Resource?
-
I saw that the Character Component tag of c4d seems to achieve this effect. Can I use Python to create a plugin and make the tree view a parameter of the plugin. I tried to find the answer in the C++doc Resource Files Manual, but couldn't find it.
Thanks for any help!
-
Hello @chuanzhen,
Thank you for reaching out to us. That is not a tree view, at least not the tree view from Python you are probably thinking of. This is a CUSTOMGUI_ITEMTREE with its matching data type ItemTreeData. This GUI is not exposed in Python and also not really exposed in C++ (because
ItemTreeNode
is missing there). So, while you could add that element in your description, you could not really interact with it in Python (at all) or C++ (to a lesser extent here).I have fully exposing and documenting this GUI in C++ on my backlog, maybe we could then think about exposing it in Python too. But there is a lot of type complexity behind it, which would mean a lot working for porting, since this is a Cinema API type. So, this likely will never be ported to Python.
Cheers,
Ferdinand -
@ferdinand Thank you for your detailed answer.