You are viewing RenderMan 22 documentation which is not the current release. You may view the current documentation by visiting the home page.

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagecpp
RixRenderState* *state = reinterpret_cast< RixRenderState cast<RixRenderState* >(
    ctx.GetRixInterface( k_RixRenderState ) );
RixRenderState::FrameInfo frame;
state->GetFrameInfo( &frame );
RixIntegratorEnvironment const* *env =     reinterpret_cast<cast<RixIntegratorEnvironment RixIntegratorEnvironment const * >(
        frame.integratorEnv );

std::string name( "foo" );

std::vector<vector<RixChannelId> RixChannelId > ids;
for ( int index = 0; index < env->numDisplays; ++index )
    if ( env->displays[ index ].channel == name )
        ids.push_back( env->displays[ index ].id );

Note that there may be more than one match for a given name. This may be caused by either the the “string source” parameter to a display channel or the particular AOV being output multiple times. Typically, a display filter will store the list of matches and apply itself to all of them.

...