Jump to content
nuki

parameters not added with #pragma

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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×