Blender V4.3
CryptomatteSession Struct Reference

Public Member Functions

 CryptomatteSession ()=default
 
 CryptomatteSession (const Main *bmain)
 
 CryptomatteSession (StampData *stamp_data)
 
 CryptomatteSession (const ViewLayer *view_layer)
 
 CryptomatteSession (const Scene *scene, bool build_meta_data=false)
 
void init (const ViewLayer *view_layer, bool build_meta_data=false)
 
blender::bke::cryptomatte::CryptomatteLayeradd_layer (std::string layer_name)
 
std::optional< std::string > operator[] (float encoded_hash) const
 

Public Attributes

blender::Map< std::string, blender::bke::cryptomatte::CryptomatteLayerlayers
 
blender::Vector< std::string > layer_names
 

Detailed Description

Definition at line 39 of file cryptomatte.cc.

Constructor & Destructor Documentation

◆ CryptomatteSession() [1/5]

CryptomatteSession::CryptomatteSession ( )
default

◆ CryptomatteSession() [2/5]

CryptomatteSession::CryptomatteSession ( const Main * bmain)

◆ CryptomatteSession() [3/5]

◆ CryptomatteSession() [4/5]

CryptomatteSession::CryptomatteSession ( const ViewLayer * view_layer)

Definition at line 93 of file cryptomatte.cc.

References init().

◆ CryptomatteSession() [5/5]

CryptomatteSession::CryptomatteSession ( const Scene * scene,
bool build_meta_data = false )

Definition at line 98 of file cryptomatte.cc.

References BKE_scene_view_layers_synced_ensure(), init(), and LISTBASE_FOREACH.

Member Function Documentation

◆ add_layer()

◆ init()

◆ operator[]()

std::optional< std::string > CryptomatteSession::operator[] ( float encoded_hash) const

Definition at line 160 of file cryptomatte.cc.

References result.

Member Data Documentation

◆ layer_names

blender::Vector<std::string> CryptomatteSession::layer_names

◆ layers


The documentation for this struct was generated from the following file: