asset = hou.selectedNodes()[0] pane_tab = hou.ui.paneTabOfType(hou.paneTabType.NetworkEditor) recipe_name = "test" node_position_x = 0 node_position_y = 0 kwargs = { "pane": pane_tab, "inputs": [asset.path()], "outputs": [], "nodepositionx": node_position_x, "nodepositiony": node_position_y, } hou.data.applyTabToolRecipe(recipe_name, kwargs)
This code doesn't work as well:
asset.hou.data.applyTabToolRecipe(recipe_name, kwargs)