Jump to content

Custom Camera issues


Recommended Posts

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?

Link to comment
Share on other sites

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.

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