Jump to content

VRay UI and VRAY_ProceduralArg relationship


Recommended Posts

Hi,

 

  Looking at the VRAY_DemoFile.C example, I see the following

 

static VRAY_ProceduralArg       theArgs[] = {

    VRAY_ProceduralArg("file",          "string",       ""),

    VRAY_ProceduralArg("blurfile",      "string",       ""),

    VRAY_ProceduralArg("velocityblur",  "int",          "0"),

    VRAY_ProceduralArg("shutter",       "real",         "1"),

    VRAY_ProceduralArg()

};

 

  I have 2 newbie questions:

  (1) How do we pass information to a procedural ?

  (2) I see some procedural having UI, how are they constructed ?

 

For question (1), I found a similar question from 2008 but that has no reply


 

Cheers

 

Link to comment
Share on other sites

Answering my own post, I think I figured it out

 

(1) Create them as VRAY_ProceduralArg as normal in the subclass

(2) The UI can be created as part of the Operator Type creation and if the name and type matches up, the information can than be queried within the procedural via get*Parm()

 

Now I need to figure out how to programmatically create the match OTL as part of the plugin builds so that everything can be bundled up without any intervention from the user.

 

Cheers

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...