nicholas_yue Posted October 2, 2014 Share Posted October 2, 2014 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 http://forums.odforce.net/topic/8119-mantra-procedural-shop/ Cheers Quote Link to comment Share on other sites More sharing options...
nicholas_yue Posted October 2, 2014 Author Share Posted October 2, 2014 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.