Niall Flinn

Niall Flinn

About Me

Connect

LOCATION
Not Specified
ウェブサイト

Houdini Skills

Availability

Not Specified

Recent Forum Posts

Creating parameter UI in volumevop from vex code 2014年3月6日16:44

Thanks!

Here's a hip file and a script to load into the vop… currently it's pointing to a location in my home directory. Oh, and the script has a .txt file extension, as the forum won't allow me to upload it with the .vfl extension.

Niall

Creating parameter UI in volumevop from vex code 2014年3月6日15:18

Hi Rob,

That's what I'm already doing, but the volumevop doesn't seem to want to create the UI. Is there something special about that context? What kind of node does your code run in?

Cheers,

N

Creating parameter UI in volumevop from vex code 2014年3月6日14:28

Hi,

I'm starting to experiment with hand coding vex to manipulate volumes, and it seems like there are a few different ways of doing it. The approach I'm working on at the moment is to create a volumevop, dive in, plug a couple of nodes together in there, then examine the resulting vex code and use that as a template for my own code.

This is generally working fine: I can modulate the density using noise( P ) and see the results in the viewport. However, I can't seem to get my script to generate any UI for parameters. I have the following pragmas at the top of my script:

#pragma export testParm all
#pragma label testParm “Test Parm”
#pragma range testParm 0 1

… and the function definition specifies a default value:

float testParm = 0;

… but all I get is the default UI, with no field, label or slider for my parameter.

What am I doing wrong? Surely I don't need to “manually” create the UI? It seems that the pragmas are there to specify the UI from within the script.

Cheers,

Niall