[Closed] custom dotnet material tree script does nothing
thnx…good links…It turns out I need the parent node and that part of the tree up from the selection. Not sure hiw to do this. Any thoughts, Io?
Hmm…yes…treelistnode parentnode …then get in curly brackets…yeah…its just thats the c code…unsure how to impelement the get function…why don’t they just give a simple two line example? Saves mucking around… I mean thats how they define words on dictionaries…give examples of usage…anyway…will plug on trying variations of syntax
it’s just a property, no need to over-complicate things. You don’t need to implement a getter function.
if n is your node then n.parentNode is the parent node.
Yep…it’s all good and quite straightforward. Nodes and parentNode seem to cover most of what I need.
However, there are two panes in the material browser with two foci…how to get what selection is in what pane? there doesn’t seem to be anything in the documentation, although I suppose i could loop thru all the controls and see which fits…like splitpane and then inspect the properties of that…is there an easier way?
Sorry to bother everyone.Thanks in advance.