View Single Post
08/24/21, 07:48 AM   #6
IsJustaGhost
AddOn Author - Click to view addons
Join Date: May 2020
Posts: 38
I ended up figuring this out.

Lua Code:
  1. local function GetNodeByData(recipeData)
  2.     for _, listNode in pairs(PROVISIONER.recipeTree.rootNode.children) do
  3.         if listNode.data.recipeListIndex == recipeData.recipeListIndex then
  4.             for _, node in pairs(listNode.children) do
  5.                 if node.data.recipeIndex == recipeData.recipeIndex then
  6.                     return node
  7.                 end
  8.             end
  9.         end
  10.     end
  11. end
  12.  
  13. local node = GetNodeByData({recipeListIndex = 1, recipeIndex = 5})
  14. node:GetTree():SelectNode(node)
  Reply With Quote