Ksenia Yasyrkina

Pushpin

About Me

専門知識
Generalist

Connect

LOCATION
Belgrad, Not Specified
ウェブサイト

Houdini Engine

Availability

I am available for Freelance Work

Recent Forum Posts

How to make recipes work in Houdini using Python? 2024年11月23日10:10

Thank you, Alexwheezy! I found the mistake in my code. I used not full name of the recipe I had saved. So, it should be like in Recipe Manager (Windows - Recipe Manager) in "Internal Name" column. So, in my case it should be not just "test", but "user::test". And everything works fine!

How to make recipes work in Houdini using Python? 2024年11月21日13:32

Hi! I'm trying to automate node creation in Houdini using Python. Specifically, I want to create nodes saved as a tab recipe. However, I keep getting an error. What am I doing wrong?

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)