Forum Groups
  All forums
    Help & Feedback
      Work in progress
      Finished Art
      Non-Max related

Featured Threads
  inspiration alert!!!
(37 replies)
  Indespensible MaxScripts, Plugins and 3rd Party Tools
(37 replies)
  The allmighty FREE Resources Thread !
(17 replies)
  spam alert!!!
(4886 replies)
  Maxforums member photo gallery index
(114 replies)
  Maxforums Member Tutorials
(89 replies)
  three cheers to maxforums...
(240 replies)
  101 Things you didnt know in Max...
(198 replies)
  A Face tutorial from MDB101 :D
(95 replies) Members Gallery
(516 replies)
(637 replies)
  Dub's Maxscript Tutorial Index
(119 replies)

Maxunderground news unavailable

Maxscript - dotNet treeview selected node index
show user profile  Mr.Burns
I can't seem to figure out how to get the index of a treeview's selected node. The help file lists all sorts of things for ActiveX treeviews, but unfortunately there's not much to find on dotNet treeviews. Does anyone know how to do this?
read 1162 times
1/27/2012 6:47:46 PM (last edit: 1/27/2012 6:47:46 PM)
show user profile  Nik Clark

This group of eggheads will probably know.

read 1157 times
1/27/2012 6:52:41 PM (last edit: 1/27/2012 6:52:41 PM)
show user profile  Mr.Burns
Oh, too bad you need to register :( Thanks though!
read 1155 times
1/27/2012 6:54:09 PM (last edit: 1/27/2012 6:54:09 PM)
show user profile  Garp

read 1147 times
1/27/2012 7:23:58 PM (last edit: 1/27/2012 7:23:58 PM)
show user profile  Mr.Burns
Cheers Garp. Unfortunately I don't understand what he's doing there, but I think I've come up with a way to calculate the index. Hope it'll work...
read 1139 times
1/27/2012 7:59:10 PM (last edit: 1/27/2012 7:59:10 PM)
show user profile  Garp
You could maintain some sort of lookat table with the indices as you add the objects to the treeview. But if you change anything in the scene, it won't be valid anymore.

read 1133 times
1/27/2012 8:21:02 PM (last edit: 1/27/2012 8:21:02 PM)
show user profile  Mr.Burns
Just as I had it figured out I realised I only need to index the nodes that don't have any children. I'm now using the .tag property to store the index and an array to store the entities that previously went into the .tag property. Thanks for your help guys :)
read 1122 times
1/28/2012 10:38:32 AM (last edit: 1/28/2012 10:38:32 AM)
#Maxforums IRC
Open chat window