Jump to content

parameters not added with #pragma


nuki

Recommended Posts

I cant figure out how to get Houdini to add Parameters for arguments of my main function. My understanding is that:

#pragma label test "Test"
#pragma export test all
cvex
fun_ction(float test=1; export vector P=0)
{
    P *= (vector)test;
}

should expose a float parameter labelled ''Test" to the UI. However, if I create a node with this definition there are no parameters added based on the code. I can add them manually in the Operator Type Properties but I would rather have them defined in VEX.

Edit: It must have something to do with the mat context. Creating the asset in shop context in h16.5 works just fine.

asset_param.hiplc

Edited by nuki
Link to comment
Share on other sites

so it seems to me that this has been moved to the Input/Output section of the Operator Type Properties. You can hit the 'Create/Update Inputs From Parameters' option and hook that up with parameters inside a material builder node.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...