Blender V5.0
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 38 of file cryptomatte.cc.

Constructor & Destructor Documentation

◆ CryptomatteSession() [1/5]

CryptomatteSession::CryptomatteSession ( )
default

◆ CryptomatteSession() [2/5]

◆ CryptomatteSession() [3/5]

◆ CryptomatteSession() [4/5]

CryptomatteSession::CryptomatteSession ( const ViewLayer * view_layer)

Definition at line 99 of file cryptomatte.cc.

References init().

◆ CryptomatteSession() [5/5]

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

Member Function Documentation

◆ add_layer()

blender::bke::cryptomatte::CryptomatteLayer & CryptomatteSession::add_layer ( std::string layer_name)

Definition at line 171 of file cryptomatte.cc.

References layer_names, and layers.

Referenced by BKE_cryptomatte_add_layer(), CryptomatteSession(), and init().

◆ init()

◆ operator[]()

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

Definition at line 179 of file cryptomatte.cc.

References layers, and 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: