|
Blender V5.3
|
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) |
| bke::cryptomatte::CryptomatteLayer & | add_layer (std::string layer_name) |
| std::optional< std::string > | operator[] (float encoded_hash) const |
Public Attributes | |
| Map< std::string, bke::cryptomatte::CryptomatteLayer > | layers |
| Vector< std::string > | layer_names |
Definition at line 40 of file cryptomatte.cc.
|
default |
| blender::CryptomatteSession::CryptomatteSession | ( | const Main * | bmain | ) |
Definition at line 58 of file cryptomatte.cc.
References blender::bke::cryptomatte::CryptomatteLayer::add_ID(), add_layer(), blender::Object::id, blender::Main::materials, blender::Main::objects, blender::Object::parent, RE_PASSNAME_CRYPTOMATTE_ASSET, RE_PASSNAME_CRYPTOMATTE_MATERIAL, and RE_PASSNAME_CRYPTOMATTE_OBJECT.
| blender::CryptomatteSession::CryptomatteSession | ( | StampData * | stamp_data | ) |
Definition at line 83 of file cryptomatte.cc.
References blender::BKE_stamp_info_callback(), blender::bke::cryptomatte::CryptomatteStampDataCallbackData::extract_layer_manifest(), blender::bke::cryptomatte::CryptomatteStampDataCallbackData::extract_layer_names(), and blender::bke::cryptomatte::CryptomatteStampDataCallbackData::session.
| blender::CryptomatteSession::CryptomatteSession | ( | const ViewLayer * | view_layer | ) |
Definition at line 98 of file cryptomatte.cc.
References init().
| blender::CryptomatteSession::CryptomatteSession | ( | const Scene * | scene, |
| bool | build_meta_data = false ) |
Definition at line 103 of file cryptomatte.cc.
References blender::BKE_view_layer_is_synced(), blender::BLI_assert(), init(), and blender::Scene::view_layers.
| bke::cryptomatte::CryptomatteLayer & blender::CryptomatteSession::add_layer | ( | std::string | layer_name | ) |
Definition at line 169 of file cryptomatte.cc.
References layer_names, and layers.
Referenced by blender::BKE_cryptomatte_add_layer(), CryptomatteSession(), CryptomatteSession(), and init().
| void blender::CryptomatteSession::init | ( | const ViewLayer * | view_layer, |
| bool | build_meta_data = false ) |
Definition at line 114 of file cryptomatte.cc.
References blender::bke::cryptomatte::CryptomatteLayer::add_ID(), add_layer(), blender::BKE_object_material_get(), blender::BKE_view_layer_object_bases_get(), blender::ViewLayer::cryptomatte_flag, blender::Object::id, blender::ViewLayer::name, blender::Object::parent, RE_PASSNAME_CRYPTOMATTE_ASSET, RE_PASSNAME_CRYPTOMATTE_MATERIAL, RE_PASSNAME_CRYPTOMATTE_OBJECT, blender::StringRefNull::StringRefNull(), VIEW_LAYER_CRYPTOMATTE_ALL, blender::VIEW_LAYER_CRYPTOMATTE_ASSET, blender::VIEW_LAYER_CRYPTOMATTE_MATERIAL, and blender::VIEW_LAYER_CRYPTOMATTE_OBJECT.
Referenced by CryptomatteSession(), CryptomatteSession(), and CryptomatteSession().
| std::optional< std::string > blender::CryptomatteSession::operator[] | ( | float | encoded_hash | ) | const |
Definition at line 177 of file cryptomatte.cc.
References layer, layers, and blender::result.
Referenced by CryptomatteSession().
| Vector<std::string> blender::CryptomatteSession::layer_names |
Definition at line 43 of file cryptomatte.cc.
Referenced by add_layer(), and blender::bke::cryptomatte::BKE_cryptomatte_layer_names_get().
| Map<std::string, bke::cryptomatte::CryptomatteLayer> blender::CryptomatteSession::layers |
Definition at line 41 of file cryptomatte.cc.
Referenced by add_layer(), blender::bke::cryptomatte::BKE_cryptomatte_layer_get(), blender::BKE_cryptomatte_material_hash(), blender::BKE_cryptomatte_object_hash(), blender::BKE_cryptomatte_store_metadata(), and operator[]().