nestumkiller Posted June 24, 2008 Share Posted June 24, 2008 Hi guys! I'm creating my custom camera node derived from OBJ_Camera. I want to expose the basic camera params - under the Transform, Render, View and Sampling folders - but I only get the first 2 tabs. I'm creating a template pair to pass to OP_Oprtator constructor, and the code (in short) looks like this: ... obj_template = OBJ_Camera::getTemplateList(OBJ_PARMS_PLAIN); size = PRM_Template::countTemplates( obj_template ); theTemplate = new PRM_Template[size + 1]; // add +1 for sentinel for( i = 0; i < size; i++ ) { theTemplate[i] = obj_template[i]; theTemplate[i].getToken( parm_name ); cout << "Adding: " << parm_name << endl; copyParmWithInvisible( obj_template[i], theTemplate[i] ); } ... I was expecting to get all the params (for the view and sampling), but my "Adding" comment only outputs the ones under Transform and Render, and therefore I only get those on the GUI. Any clues how to get those? Quote Link to comment Share on other sites More sharing options...
crunch Posted June 24, 2008 Share Posted June 24, 2008 Hi guys!I was expecting to get all the params (for the view and sampling), but my "Adding" comment only outputs the ones under Transform and Render, and therefore I only get those on the GUI. Any clues how to get those? See the opproperty command. You can see how it's used in $HH/scripts/cam.cmd. Quote Link to comment Share on other sites More sharing options...
nestumkiller Posted June 27, 2008 Author Share Posted June 27, 2008 See the opproperty command.You can see how it's used in $HH/scripts/cam.cmd. Thanks a lot for the tip. I went to check it out as I saw it and forgot to answer . 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.