|
Blender V4.3
|
Namespaces | |
| namespace | detail |
| namespace | usdtokens |
Typedefs | |
| using | USDHookList = std::list<std::unique_ptr<USDHook>> |
| using | ShaderToNodeMap = blender::Map<std::string, bNode *> |
| using | ProtoReaderMap = blender::Map<pxr::SdfPath, blender::Vector<USDPrimReader *>> |
| using | UsdPathSet = blender::Set<pxr::SdfPath> |
| using | XformResult = std::tuple<pxr::GfMatrix4f, bool> |
| using | ObjExportMap = Map<const Object *, pxr::SdfPath> |
| using | InputSpecMap = blender::Map<std::string, InputSpec> |
Functions | |
| static void | visit_bones (const Bone *bone, FunctionRef< void(const Bone *)> visitor) |
| const ModifierData * | get_enabled_modifier (const Object &obj, ModifierType type, const Depsgraph *depsgraph) |
| static const ArmatureModifierData * | get_armature_modifier (const Object &obj, const Depsgraph *depsgraph) |
| void | visit_bones (const Object *ob_arm, FunctionRef< void(const Bone *)> visitor) |
| void | get_armature_bone_names (const Object *ob_arm, const bool use_deform, Vector< std::string > &r_names) |
| pxr::TfToken | build_usd_joint_path (const Bone *bone, bool allow_unicode) |
| void | create_pose_joints (pxr::UsdSkelAnimation &skel_anim, const Object &obj, const Map< StringRef, const Bone * > *deform_map, bool allow_unicode) |
| const Object * | get_armature_modifier_obj (const Object &obj, const Depsgraph *depsgraph) |
| bool | is_armature_modifier_bone_name (const Object &obj, const StringRefNull name, const Depsgraph *depsgraph) |
| bool | can_export_skinned_mesh (const Object &obj, const Depsgraph *depsgraph) |
| void | init_deform_bones_map (const Object *obj, Map< StringRef, const Bone * > *deform_map) |
| const pxr::TfToken | BlenderBoneLengths ("blender:bone_lengths", pxr::TfToken::Immortal) |
| static std::pair< std::string, std::string > | split_udim_pattern (const std::string &path) |
| static std::string | get_asset_base_name (const char *src_path, ReportList *reports) |
| static std::string | copy_asset_to_directory (const char *src_path, const char *dest_dir_path, eUSDTexNameCollisionMode name_collision_mode, ReportList *reports) |
| static std::string | copy_udim_asset_to_directory (const char *src_path, const char *dest_dir_path, eUSDTexNameCollisionMode name_collision_mode, ReportList *reports) |
| bool | copy_asset (const char *src, const char *dst, eUSDTexNameCollisionMode name_collision_mode, ReportList *reports) |
| bool | asset_exists (const char *path) |
| std::string | import_asset (const char *src, const char *import_dir, eUSDTexNameCollisionMode name_collision_mode, ReportList *reports) |
| static bool | parent_dir_exists_on_file_system (const std::string &path) |
| bool | is_udim_path (const std::string &path) |
| std::string | get_export_textures_dir (const pxr::UsdStageRefPtr stage) |
| bool | should_import_asset (const std::string &path) |
| bool | paths_equal (const char *p1, const char *p2) |
| const char * | temp_textures_dir () |
| bool | write_to_path (const void *data, size_t size, const char *path, ReportList *reports) |
| void | ensure_usd_source_path_prop (const std::string &path, ID *id) |
| std::string | get_usd_source_path (ID *id) |
| std::string | get_relative_path (const std::string &path, const std::string &anchor) |
| void | USD_path_abs (char *path, const char *basepath, bool for_import) |
| std::optional< pxr::SdfValueTypeName > | convert_blender_type_to_usd (const eCustomDataType blender_type, bool use_color3f_type) |
| std::optional< eCustomDataType > | convert_usd_type_to_blender (const pxr::SdfValueTypeName usd_type) |
| void | copy_primvar_to_blender_attribute (const pxr::UsdGeomPrimvar &primvar, const pxr::UsdTimeCode timecode, const eCustomDataType data_type, const bke::AttrDomain domain, const OffsetIndices< int > face_indices, bke::MutableAttributeAccessor attributes) |
| void | copy_blender_attribute_to_primvar (const GVArray &attribute, const eCustomDataType data_type, const pxr::UsdTimeCode timecode, const pxr::UsdGeomPrimvar &primvar, pxr::UsdUtilsSparseValueWriter &value_writer) |
| template<typename BlenderT , typename USDT > | |
| void | copy_blender_buffer_to_primvar (const VArray< BlenderT > &buffer, const pxr::UsdTimeCode timecode, const pxr::UsdGeomPrimvar &primvar, pxr::UsdUtilsSparseValueWriter &value_writer) |
| template<typename T > | |
| pxr::VtArray< T > | get_primvar_array (const pxr::UsdGeomPrimvar &primvar, const pxr::UsdTimeCode timecode) |
| template<typename USDT , typename BlenderT > | |
| void | copy_primvar_to_blender_buffer (const pxr::UsdGeomPrimvar &primvar, const pxr::UsdTimeCode timecode, const OffsetIndices< int > faces, MutableSpan< BlenderT > attribute) |
| pxr::TfToken | TempBlendShapeWeightsPrimvarName ("temp:weights", pxr::TfToken::Immortal) |
| void | ensure_blend_shape_skeleton (pxr::UsdStageRefPtr stage, pxr::UsdPrim &mesh_prim) |
| const Key * | get_mesh_shape_key (const Object *obj) |
| bool | is_mesh_with_shape_keys (const Object *obj) |
| void | create_blend_shapes (pxr::UsdStageRefPtr stage, const Object *obj, const pxr::UsdPrim &mesh_prim, bool allow_unicode) |
| pxr::VtFloatArray | get_blendshape_weights (const Key *key) |
| void | remap_blend_shape_anim (pxr::UsdStageRefPtr stage, const pxr::SdfPath &skel_path, const pxr::SdfPathSet &mesh_paths) |
| Mesh * | get_shape_key_basis_mesh (Object *obj) |
| static bool | prim_path_valid (const char *path) |
| static bool | export_params_valid (const USDExportParams ¶ms) |
| static void | ensure_root_prim (pxr::UsdStageRefPtr stage, const USDExportParams ¶ms) |
| static void | report_job_duration (const ExportJobData *data) |
| static void | process_usdz_textures (const ExportJobData *data, const char *path) |
| static bool | perform_usdz_conversion (const ExportJobData *data) |
| std::string | image_cache_file_path () |
| std::string | get_image_cache_file (const std::string &file_name, bool mkdir) |
| std::string | cache_image_color (const float color[4]) |
| pxr::UsdStageRefPtr | export_to_stage (const USDExportParams ¶ms, Depsgraph *depsgraph, const char *filepath) |
| static void | export_startjob (void *customdata, wmJobWorkerStatus *worker_status) |
| static void | export_endjob_usdz_cleanup (const ExportJobData *data) |
| static void | export_endjob (void *customdata) |
| static void | create_temp_path_for_usdz_export (const char *filepath, blender::io::usd::ExportJobData *job) |
| static void | set_job_filepath (blender::io::usd::ExportJobData *job, const char *filepath) |
| bool | USD_export (const bContext *C, const char *filepath, const USDExportParams *params, bool as_background_job, ReportList *reports) |
| int | USD_get_version () |
| static CacheArchiveHandle * | handle_from_stage_reader (USDStageReader *reader) |
| static USDStageReader * | stage_reader_from_handle (CacheArchiveHandle *handle) |
| static bool | gather_objects_paths (const pxr::UsdPrim &object, ListBase *object_paths) |
| static void | convert_to_z_up (pxr::UsdStageRefPtr stage, ImportSettings *r_settings) |
| static void | find_prefix_to_skip (pxr::UsdStageRefPtr stage, ImportSettings *r_settings) |
| static void | report_job_duration (const ImportJobData *data) |
| static void | import_startjob (void *customdata, wmJobWorkerStatus *worker_status) |
| static void | import_endjob (void *customdata) |
| static void | import_freejob (void *user_data) |
| bool | USD_import (const bContext *C, const char *filepath, const USDImportParams *params, bool as_background_job, ReportList *reports) |
| static USDPrimReader * | get_usd_reader (CacheReader *reader, const Object *, const char **r_err_str) |
| USDMeshReadParams | create_mesh_read_params (const double motion_sample_time, const int read_flags) |
| void | USD_read_geometry (CacheReader *reader, const Object *ob, blender::bke::GeometrySet &geometry_set, const USDMeshReadParams params, const char **r_err_str) |
| bool | USD_mesh_topology_changed (CacheReader *reader, const Object *ob, const Mesh *existing_mesh, const double time, const char **r_err_str) |
| CacheReader * | CacheReader_open_usd_object (CacheArchiveHandle *handle, CacheReader *reader, Object *object, const char *object_path) |
| void | USD_CacheReader_free (CacheReader *reader) |
| CacheArchiveHandle * | USD_create_handle (Main *, const char *filepath, ListBase *object_paths) |
| void | USD_free_handle (CacheArchiveHandle *handle) |
| void | USD_get_transform (CacheReader *reader, float r_mat_world[4][4], float time, float scale) |
| static USDHookList & | hook_list () |
| void | USD_register_hook (std::unique_ptr< USDHook > hook) |
| void | USD_unregister_hook (USDHook *hook) |
| USDHook * | USD_find_hook_name (const char idname[]) |
| void | register_hook_converters () |
| static void | handle_python_error (USDHook *hook, ReportList *reports) |
| void | call_export_hooks (pxr::UsdStageRefPtr stage, Depsgraph *depsgraph, ReportList *reports) |
| void | call_material_export_hooks (pxr::UsdStageRefPtr stage, Material *material, const pxr::UsdShadeMaterial &usd_material, ReportList *reports) |
| void | call_import_hooks (pxr::UsdStageRefPtr stage, ReportList *reports) |
| static pxr::SdfPath | get_unique_path (pxr::UsdStageRefPtr stage, const std::string &path) |
| static Image * | load_image (std::string tex_path, Main *bmain, const USDImportParams ¶ms) |
| static bNode * | append_node (bNode *dst_node, int16_t new_node_type, const char *out_sock, const char *in_sock, bNodeTree *ntree, float offset) |
| static bool | node_search (bNode *fromnode, bNode *, void *userdata, const bool) |
| void | world_material_to_dome_light (const USDExportParams ¶ms, const Scene *scene, pxr::UsdStageRefPtr stage) |
| void | dome_light_to_world_material (const USDImportParams ¶ms, const ImportSettings &, Scene *scene, Main *bmain, const pxr::UsdLuxDomeLight &dome_light, const double motionSampleTime) |
| template<typename USDT > | |
| static void | read_face_display_color (Mesh *mesh, const pxr::UsdGeomPrimvar &primvar, const pxr::TfToken &pv_name, double motion_sample_time) |
| static std::optional< bke::AttrDomain > | convert_usd_varying_to_blender (const pxr::TfToken usd_domain) |
| void | read_generic_mesh_primvar (Mesh *mesh, const pxr::UsdGeomPrimvar &primvar, const double motionSampleTime, const bool is_left_handed) |
| static float3 | to_float3 (pxr::GfVec3f vec3f) |
| static int | bezier_point_count (int usd_count, bool is_cyclic) |
| static int | point_count (int usdCount, CurveType curve_type, bool is_cyclic) |
| static Array< int > | calc_curve_offsets (const pxr::VtIntArray &usdCounts, const CurveType curve_type, bool is_cyclic) |
| static void | add_bezier_control_point (int cp, int offset, MutableSpan< float3 > positions, MutableSpan< float3 > handles_left, MutableSpan< float3 > handles_right, const Span< pxr::GfVec3f > usdPoints) |
| static bool | curves_topology_changed (const bke::CurvesGeometry &curves, const Span< int > usd_offsets) |
| static CurveType | get_curve_type (pxr::TfToken type, pxr::TfToken basis) |
| static std::optional< bke::AttrDomain > | convert_usd_interp_to_blender (const pxr::TfToken usd_domain) |
| static IntermediateNode | add_normal_map (bNodeTree *ntree, int column, NodePlacementContext *r_ctx) |
| static IntermediateNode | add_scale_bias (const pxr::UsdShadeShader &usd_shader, bNodeTree *ntree, int column, bool feeds_normal_map, NodePlacementContext *r_ctx) |
| static IntermediateNode | add_scale_bias_adjust (bNodeTree *ntree, int column, NodePlacementContext *r_ctx) |
| static IntermediateNode | add_separate_color (const pxr::UsdShadeShader &usd_shader, const pxr::TfToken &usd_source_name, bNodeTree *ntree, int column, NodePlacementContext *r_ctx) |
| static IntermediateNode | add_lessthan (bNodeTree *ntree, float threshold, int column, NodePlacementContext *r_ctx) |
| static IntermediateNode | add_oneminus (bNodeTree *ntree, int column, NodePlacementContext *r_ctx) |
| void | build_material_map (const Main *bmain, blender::Map< std::string, Material * > *r_mat_map) |
| Material * | find_existing_material (const pxr::SdfPath &usd_mat_path, const USDImportParams ¶ms, const blender::Map< std::string, Material * > &mat_map, const blender::Map< std::string, std::string > &usd_path_to_mat_name) |
| static bNode * | add_input_named_attrib_node (bNodeTree *ntree, const char *name, int8_t prop_type) |
| static void | decref (USDPrimReader *reader) |
| static Collection * | create_collection (Main *bmain, Collection *parent, const char *name) |
| static void | set_instance_collection (USDInstanceReader *instance_reader, const blender::Map< pxr::SdfPath, Collection * > &proto_collection_map) |
| static bool | merge_with_parent (USDPrimReader *reader) |
| static void | set_string_prop (IDProperty *idgroup, const char *prop_name, const char *str_val) |
| static void | set_int_prop (IDProperty *idgroup, const char *prop_name, const int ival) |
| static void | set_bool_prop (IDProperty *idgroup, const char *prop_name, const bool bval) |
| static void | set_float_prop (IDProperty *idgroup, const char *prop_name, const float fval) |
| static void | set_double_prop (IDProperty *idgroup, const char *prop_name, const double dval) |
| void | set_id_props_from_prim (ID *id, const pxr::UsdPrim &prim, const eUSDAttrImportMode attr_import_mode, const pxr::UsdTimeCode time_code) |
| void | import_blendshapes (Main *bmain, Object *mesh_obj, const pxr::UsdPrim &prim, ReportList *reports, const bool import_anim) |
| void | import_skeleton (Main *bmain, Object *arm_obj, const pxr::UsdSkelSkeleton &skel, ReportList *reports, const bool import_anim) |
| void | import_mesh_skel_bindings (Main *bmain, Object *mesh_obj, const pxr::UsdPrim &prim, ReportList *reports) |
| void | skel_export_chaser (pxr::UsdStageRefPtr stage, const ObjExportMap &armature_export_map, const ObjExportMap &skinned_mesh_export_map, const ObjExportMap &shape_key_mesh_export_map, const Depsgraph *depsgraph) |
| void | skinned_mesh_export_chaser (pxr::UsdStageRefPtr stage, const ObjExportMap &armature_export_map, const ObjExportMap &skinned_mesh_export_map, pxr::UsdGeomXformCache &xf_cache, const Depsgraph *depsgraph) |
| void | shape_key_export_chaser (pxr::UsdStageRefPtr stage, const ObjExportMap &shape_key_mesh_export_map) |
| void | export_deform_verts (const Mesh *mesh, const pxr::UsdSkelBindingAPI &skel_api, const Span< std::string > bone_names) |
| void | create_skel_roots (pxr::UsdStageRefPtr stage, const USDExportParams ¶ms) |
| std::string | make_safe_name (const std::string &name, bool allow_unicode) |
| static void | create_vector_attrib (const pxr::UsdPrim &prim, const IDProperty *prop, const pxr::TfToken &prop_token, const pxr::UsdTimeCode &timecode) |
| static void | camera_sensor_size_for_render (const Camera *camera, const RenderData *rd, float *r_sensor, float *r_sensor_x, float *r_sensor_y) |
| static void | populate_curve_widths (const bke::CurvesGeometry &curves, pxr::VtArray< float > &widths) |
| static pxr::TfToken | get_curve_width_interpolation (const pxr::VtArray< float > &widths, const pxr::VtArray< int > &segments, const pxr::VtIntArray &control_point_counts, const bool is_cyclic, ReportList *reports) |
| static void | populate_curve_verts (const bke::CurvesGeometry &curves, const Span< float3 > positions, pxr::VtArray< pxr::GfVec3f > &verts, pxr::VtIntArray &control_point_counts, pxr::VtArray< int > &segments, const bool is_cyclic, const bool is_cubic) |
| static void | populate_curve_props (const bke::CurvesGeometry &curves, pxr::VtArray< pxr::GfVec3f > &verts, pxr::VtIntArray &control_point_counts, pxr::VtArray< float > &widths, pxr::TfToken &interpolation, const bool is_cyclic, const bool is_cubic, ReportList *reports) |
| static void | populate_curve_verts_for_bezier (const bke::CurvesGeometry &curves, const Span< float3 > positions, const Span< float3 > handles_l, const Span< float3 > handles_r, pxr::VtArray< pxr::GfVec3f > &verts, pxr::VtIntArray &control_point_counts, pxr::VtArray< int > &segments, const bool is_cyclic) |
| static void | populate_curve_props_for_bezier (const bke::CurvesGeometry &curves, pxr::VtArray< pxr::GfVec3f > &verts, pxr::VtIntArray &control_point_counts, pxr::VtArray< float > &widths, pxr::TfToken &interpolation, const bool is_cyclic, ReportList *reports) |
| static void | populate_curve_props_for_nurbs (const bke::CurvesGeometry &curves, pxr::VtArray< pxr::GfVec3f > &verts, pxr::VtIntArray &control_point_counts, pxr::VtArray< float > &widths, pxr::VtArray< double > &knots, pxr::VtArray< int > &orders, pxr::TfToken &interpolation, const bool is_cyclic) |
| static std::optional< pxr::TfToken > | convert_blender_domain_to_usd (const bke::AttrDomain blender_domain, bool is_bezier) |
| static void | set_light_extents (const pxr::UsdPrim &prim, const pxr::UsdTimeCode time) |
| static pxr::UsdShadeShader | create_usd_preview_shader (const USDExporterContext &usd_export_context, const pxr::UsdShadeMaterial &material, const char *name, int type) |
| static pxr::UsdShadeShader | create_usd_preview_shader (const USDExporterContext &usd_export_context, const pxr::UsdShadeMaterial &material, bNode *node) |
| static void | create_uv_input (const USDExporterContext &usd_export_context, bNodeSocket *input_socket, pxr::UsdShadeMaterial &usd_material, pxr::UsdShadeInput &usd_input, const std::string &active_uvmap_name, ReportList *reports) |
| static void | export_texture (const USDExporterContext &usd_export_context, bNode *node) |
| static bNode * | find_bsdf_node (Material *material) |
| static void | get_absolute_path (const Image *ima, char *r_path) |
| static std::string | get_tex_image_asset_filepath (const USDExporterContext &usd_export_context, bNode *node) |
| static const InputSpecMap & | preview_surface_input_map () |
| static bNodeLink * | traverse_channel (bNodeSocket *input, short target_type) |
| void | set_normal_texture_range (pxr::UsdShadeShader &usd_shader, const InputSpec &input_spec) |
| template<typename T1 , typename T2 > | |
| void | create_input (pxr::UsdShadeShader &shader, const InputSpec &spec, const void *value, float scale) |
| static void | create_usd_preview_surface_material (const USDExporterContext &usd_export_context, Material *material, pxr::UsdShadeMaterial &usd_material, const std::string &active_uvmap_name, ReportList *reports) |
| static void | create_usd_viewport_material (const USDExporterContext &usd_export_context, const Material *material, const pxr::UsdShadeMaterial &usd_material) |
| static void | create_uvmap_shader (const USDExporterContext &usd_export_context, const bNodeLink *uvmap_link, const pxr::UsdShadeMaterial &usd_material, const pxr::UsdShadeInput &usd_input, const std::string &active_uvmap_name, ReportList *reports) |
| static void | create_transform2d_shader (const USDExporterContext &usd_export_context, bNodeLink *mapping_link, pxr::UsdShadeMaterial &usd_material, pxr::UsdShadeInput &usd_input, const std::string &uvmap_name, ReportList *reports) |
| static bool | is_in_memory_texture (Image *ima) |
| static bool | is_packed_texture (const Image *ima) |
| static std::string | get_in_memory_texture_filename (Image *ima) |
| static void | export_in_memory_texture (Image *ima, const std::string &export_dir, const bool allow_overwrite, ReportList *reports) |
| static pxr::TfToken | get_node_tex_image_color_space (const bNode *node) |
| static pxr::TfToken | get_node_tex_image_wrap (const bNode *node) |
| static std::string | get_tex_image_asset_filepath (const Image *ima) |
| std::string | get_tex_image_asset_filepath (Image *ima, const pxr::UsdStageRefPtr stage, const USDExportParams &export_params) |
| std::string | get_tex_image_asset_filepath (const std::string &path, const std::string &stage_path, const USDExportParams &export_params) |
| std::string | get_tex_image_asset_filepath (bNode *node, const pxr::UsdStageRefPtr stage, const USDExportParams &export_params) |
| static void | copy_tiled_textures (Image *ima, const std::string &dest_dir, const bool allow_overwrite, ReportList *reports) |
| static void | copy_single_file (const Image *ima, const std::string &dest_dir, const bool allow_overwrite, ReportList *reports) |
| static void | export_texture (Image *ima, const pxr::UsdStageRefPtr stage, const bool allow_overwrite, ReportList *reports) |
| static void | export_texture (const USDExporterContext &usd_export_context, Image *ima) |
| pxr::TfToken | token_for_input (const char *input_name) |
| pxr::UsdShadeMaterial | create_usd_material (const USDExporterContext &usd_export_context, pxr::SdfPath usd_path, Material *material, const std::string &active_uvmap_name, ReportList *reports) |
| static void | export_packed_texture (Image *ima, const std::string &export_dir, const bool allow_overwrite, ReportList *reports) |
| void | export_texture (bNode *node, const pxr::UsdStageRefPtr stage, const bool allow_overwrite, ReportList *reports) |
| static const SubsurfModifierData * | get_last_subdiv_modifier (eEvaluationMode eval_mode, Object *obj) |
| static std::optional< pxr::TfToken > | convert_blender_domain_to_usd (const bke::AttrDomain blender_domain) |
| static void | get_positions (const Mesh *mesh, USDMeshData &usd_mesh_data) |
| static void | get_loops_polys (const Mesh *mesh, USDMeshData &usd_mesh_data) |
| static void | get_edge_creases (const Mesh *mesh, USDMeshData &usd_mesh_data) |
| static void | get_vert_creases (const Mesh *mesh, USDMeshData &usd_mesh_data) |
| static std::optional< pxr::TfToken > | convert_blender_domain_to_usd (const bke::AttrDomain blender_domain) |
| static void | check_catmullRom_curve (const pxr::UsdPrim prim, const bool is_periodic, const int vertex_count) |
| static void | check_bezier_curve (const pxr::UsdPrim bezier_prim, const bool is_periodic, const int vertex_count) |
| static void | check_nurbs_curve (const pxr::UsdPrim nurbs_prim, const int vertex_count, const int knots_count, const int order) |
| static void | check_nurbs_circle (const pxr::UsdPrim nurbs_prim, const int vertex_count, const int knots_count, const int order) |
| TEST_F (UsdCurvesTest, usd_export_curves) | |
| static const bNode * | find_node_for_type_in_graph (const bNodeTree *nodetree, const blender::StringRefNull type_idname) |
| TEST_F (UsdExportTest, usd_export_rain_mesh) | |
| TEST_F (UsdExportTest, usd_export_material) | |
| TEST (utilities, make_safe_name) | |
| TEST_F (USDImagingTest, CapsuleAdapterTest) | |
| TEST_F (USDStageCreationTest, JSONFileLoadingTest) | |
| TEST_F (UsdUsdzExportTest, usdz_export) | |
Variables | |
| constexpr char | UDIM_PATTERN [] = "<UDIM>" |
| constexpr char | UDIM_PATTERN2 [] = "%3CUDIM%3E" |
| constexpr int | UDIM_START_TILE = 1001 |
| constexpr int | UDIM_END_TILE = 1100 |
| pxr::TfToken | TempBlendShapeWeightsPrimvarName |
| const StringRefNull | usd_curves_test_filename = "usd/usd_curves_test.blend" |
| const StringRefNull | output_filename = "usd/output.usda" |
| const StringRefNull | simple_scene_filename = "usd/usd_simple_scene.blend" |
| const StringRefNull | materials_filename = "usd/usd_materials_export.blend" |
| const StringRefNull | usdz_export_test_filename = "usd/usdz_export_test.blend" |
| char | temp_dir [FILE_MAX] |
| char | temp_output_dir [FILE_MAX] |
| char | output_filepath [FILE_MAX] |
| using blender::io::usd::InputSpecMap = blender::Map<std::string, InputSpec> |
Definition at line 114 of file usd_writer_material.cc.
| using blender::io::usd::ObjExportMap = Map<const Object *, pxr::SdfPath> |
Map an object to its USD prim export path.
Definition at line 87 of file usd_skel_convert.hh.
| using blender::io::usd::ProtoReaderMap = blender::Map<pxr::SdfPath, blender::Vector<USDPrimReader *>> |
Map a USD prototype prim path to the list of readers that convert the prototype data.
Definition at line 32 of file usd_reader_stage.hh.
| using blender::io::usd::ShaderToNodeMap = blender::Map<std::string, bNode *> |
Definition at line 24 of file usd_reader_material.hh.
| using blender::io::usd::USDHookList = std::list<std::unique_ptr<USDHook>> |
Definition at line 33 of file usd_hook.cc.
| using blender::io::usd::UsdPathSet = blender::Set<pxr::SdfPath> |
Definition at line 34 of file usd_reader_stage.hh.
| using blender::io::usd::XformResult = std::tuple<pxr::GfMatrix4f, bool> |
A transformation matrix and a boolean indicating whether the matrix is constant over time.
Definition at line 19 of file usd_reader_xform.hh.
| anonymous enum |
| Enumerator | |
|---|---|
| USD_NO_ERROR | |
| USD_ARCHIVE_FAIL | |
Definition at line 155 of file usd_capi_import.cc.
| Enumerator | |
|---|---|
| USD_SUBDIV_IGNORE | Subdivision scheme = None, export base mesh without subdivision. |
| USD_SUBDIV_TESSELLATE | Subdivision scheme = None, export subdivided mesh. |
| USD_SUBDIV_BEST_MATCH | Apply the USD subdivision scheme that is the closest match to Blender. Reverts to USD_SUBDIV_TESSELLATE if the subdivision method is not supported. |
|
static |
Definition at line 62 of file usd_reader_curve.cc.
References add_bezier_control_point(), blender::Span< T >::size(), and to_float3().
Referenced by add_bezier_control_point(), and blender::io::usd::USDCurvesReader::read_curve_sample().
|
static |
Create a node to read a geometry attribute of the given name and type.
Definition at line 27 of file usd_reader_pointinstancer.cc.
References BLI_strncpy(), NodeGeometryInputNamedAttribute::data_type, bNodeSocket::default_value, MAX_NAME, node, blender::bke::node_add_static_node(), blender::bke::node_find_socket(), SOCK_IN, and bNodeSocketValueString::value.
Referenced by blender::io::usd::USDPointInstancerReader::read_object_data().
|
static |
Definition at line 836 of file usd_reader_material.cc.
References add_node(), bNodeSocket::default_value, blender::io::usd::IntermediateNode::node, blender::bke::node_find_socket(), NODE_MATH_LESS_THAN, SH_NODE_MATH, and SOCK_IN.
Referenced by blender::io::usd::USDMaterialReader::follow_connection().
|
static |
Definition at line 695 of file usd_reader_material.cc.
References add_node(), blender::io::usd::IntermediateNode::node, and SH_NODE_NORMAL_MAP.
Referenced by blender::io::usd::USDMaterialReader::follow_connection().
|
static |
Definition at line 857 of file usd_reader_material.cc.
References add_node(), bNodeSocket::default_value, blender::io::usd::IntermediateNode::node, blender::bke::node_find_socket(), NODE_MATH_SUBTRACT, SH_NODE_MATH, and SOCK_IN.
Referenced by blender::io::usd::USDMaterialReader::follow_connection().
|
static |
Definition at line 711 of file usd_reader_material.cc.
References add_node(), usdtokens::bias(), cache_node(), copy_v3_v3(), bNodeSocket::default_value, get_cached_node(), node, blender::io::usd::NodePlacementContext::node_cache, blender::bke::node_find_socket(), NODE_VECTOR_MATH_MULTIPLY_ADD, usdtokens::scale(), SH_NODE_VECTOR_MATH, and SOCK_IN.
Referenced by blender::io::usd::USDMaterialReader::follow_connection().
|
static |
Definition at line 774 of file usd_reader_material.cc.
References add_node(), copy_v3_fl3(), bNodeSocket::default_value, blender::io::usd::IntermediateNode::node, blender::bke::node_find_socket(), NODE_VECTOR_MATH_MULTIPLY_ADD, SH_NODE_VECTOR_MATH, and SOCK_IN.
Referenced by blender::io::usd::USDMaterialReader::follow_connection().
|
static |
Definition at line 796 of file usd_reader_material.cc.
References add_node(), usdtokens::b(), cache_node(), usdtokens::g(), get_cached_node(), node, blender::io::usd::NodePlacementContext::node_cache, usdtokens::r(), and SH_NODE_SEPARATE_COLOR.
Referenced by blender::io::usd::USDMaterialReader::follow_connection().
|
static |
Definition at line 177 of file usd_light_convert.cc.
References bNode::locx, bNode::locy, blender::bke::node_add_link(), blender::bke::node_add_static_node(), blender::bke::node_find_socket(), SOCK_IN, and SOCK_OUT.
Referenced by dome_light_to_world_material().
| bool blender::io::usd::asset_exists | ( | const char * | path | ) |
Invoke the USD asset resolver to determine if the asset with the given path exists.
| path | the path to resolve |
Definition at line 272 of file usd_asset_utils.cc.
Referenced by copy_udim_asset_to_directory(), export_packed_texture(), and should_import_asset().
Definition at line 35 of file usd_reader_curve.cc.
References is_cyclic().
Referenced by point_count(), and blender::io::usd::USDCurvesReader::read_curve_sample().
|
inline |
Referenced by import_skeleton().
| void blender::io::usd::build_material_map | ( | const Main * | bmain, |
| blender::Map< std::string, Material * > * | r_mat_map ) |
Returns a map containing all the Blender materials which allows a fast lookup of the material by name. Note that the material name key might be modified to be a valid USD identifier, to match material names in the imported USD.
Definition at line 1384 of file usd_reader_material.cc.
References BLI_assert_msg, LISTBASE_FOREACH, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_or_add_default(), make_safe_name(), material, and Main::materials.
Referenced by blender::io::usd::USDStageReader::import_all_materials().
| pxr::TfToken blender::io::usd::build_usd_joint_path | ( | const Bone * | bone, |
| bool | allow_unicode ) |
Return the USD joint path corresponding to the given bone. For example, for the bone "Hand", this function might return the full path "Shoulder/Elbow/Hand" of the joint in the hierarchy.
| bone | The bone whose path will be queried. |
| allow_unicode | Whether to allow unicode bone names to be used |
Definition at line 99 of file usd_armature_utils.cc.
References make_safe_name(), Bone::name, and Bone::parent.
Referenced by create_pose_joints().
| std::string blender::io::usd::cache_image_color | ( | const float | color[4] | ) |
Definition at line 354 of file usd_capi_export.cc.
References BLI_exists(), CLOG_ERROR, CLOG_INFO, ImBuf::ftype, get_image_cache_file(), IB_rectfloat, IMB_allocImBuf(), IMB_freeImBuf(), IMB_FTYPE_RADHDR, IMB_rectfill(), IMB_saveiff(), LOG, and SNPRINTF.
Referenced by blender::io::hydra::WorldData::init(), and world_material_to_dome_light().
| CacheReader * blender::io::usd::CacheReader_open_usd_object | ( | CacheArchiveHandle * | handle, |
| CacheReader * | reader, | ||
| Object * | object, | ||
| const char * | object_path ) |
Definition at line 616 of file usd_capi_import.cc.
References blender::io::usd::USDStageReader::create_reader(), blender::io::usd::USDPrimReader::incref(), blender::io::usd::USDPrimReader::object(), blender::io::usd::USDStageReader::stage(), stage_reader_from_handle(), USD_CacheReader_free(), and blender::io::usd::USDStageReader::valid().
Referenced by BKE_cachefile_reader_open().
|
static |
Definition at line 48 of file usd_reader_curve.cc.
References blender::threading::parallel_for().
Referenced by blender::io::usd::USDCurvesReader::read_curve_sample().
| void blender::io::usd::call_export_hooks | ( | pxr::UsdStageRefPtr | stage, |
| Depsgraph * | depsgraph, | ||
| ReportList * | reports ) |
Call the 'on_export' chaser function defined in the registered USDHook classes.
Definition at line 333 of file usd_hook.cc.
References blender::io::usd::USDHookInvoker::call(), depsgraph, hook_list(), and stage.
Referenced by export_to_stage().
| void blender::io::usd::call_import_hooks | ( | pxr::UsdStageRefPtr | stage, |
| ReportList * | reports ) |
Call the 'on_import' chaser function defined in the registered USDHook classes.
Definition at line 356 of file usd_hook.cc.
References blender::io::usd::USDHookInvoker::call(), hook_list(), and stage.
Referenced by import_endjob().
| void blender::io::usd::call_material_export_hooks | ( | pxr::UsdStageRefPtr | stage, |
| Material * | material, | ||
| const pxr::UsdShadeMaterial & | usd_material, | ||
| ReportList * | reports ) |
Call the 'on_material_export' hook functions defined in the registered #USDHook classes.
Definition at line 343 of file usd_hook.cc.
References blender::io::usd::USDHookInvoker::call(), hook_list(), and stage.
Referenced by create_usd_material().
|
static |
Definition at line 28 of file usd_writer_camera.cc.
References BKE_camera_sensor_fit(), BKE_camera_sensor_size(), BLI_assert_msg, CAMERA_SENSOR_FIT_AUTO, CAMERA_SENSOR_FIT_HOR, CAMERA_SENSOR_FIT_VERT, RenderData::xasp, RenderData::xsch, RenderData::yasp, and RenderData::ysch.
Referenced by blender::io::usd::USDCameraWriter::do_write().
| bool blender::io::usd::can_export_skinned_mesh | ( | const Object & | obj, |
| const Depsgraph * | depsgraph ) |
Query whether exporting a skinned mesh is supported for the given object. Currently, the object can be exported as a skinned mesh if it has an enabled armature modifier and no other enabled modifiers.
| obj | Object to query |
| depsgraph | The dependency graph where the object was evaluated |
Definition at line 159 of file usd_armature_utils.cc.
References depsgraph, eModifierType_Armature, and get_enabled_modifier().
Referenced by blender::io::usd::USDMeshWriter::set_skel_export_flags().
|
static |
Test that the provided prim is a valid bezier curve. We also check it matches the expected wrap type, and has the expected number of vertices.
Definition at line 209 of file usd_curves_test.cc.
References EXPECT_EQ(), and wrap().
Referenced by TEST_F().
|
static |
Test that the provided prim is a valid catmullRom curve. We also check it matches the expected wrap type, and has the expected number of vertices.
Definition at line 159 of file usd_curves_test.cc.
References EXPECT_EQ(), and wrap().
Referenced by TEST_F().
|
static |
Test that the provided prim is a valid NURBS curve. We also check it matches the expected wrap type, and has the expected number of vertices. For NURBS, we also validate that the knots layout matches the expected layout for periodic/non-periodic curves according to the USD spec.
Definition at line 309 of file usd_curves_test.cc.
References EXPECT_EQ().
Referenced by TEST_F().
|
static |
Test that the provided prim is a valid NURBS curve. We also check it matches the expected wrap type, and has the expected number of vertices. For NURBS, we also validate that the knots layout matches the expected layout for periodic/non-periodic curves according to the USD spec.
Definition at line 262 of file usd_curves_test.cc.
References EXPECT_EQ().
Referenced by TEST_F().
|
static |
Definition at line 200 of file usd_writer_mesh.cc.
References convert_blender_domain_to_usd(), blender::bke::Corner, blender::bke::Face, and blender::bke::Point.
Referenced by convert_blender_domain_to_usd().
|
static |
Definition at line 62 of file usd_writer_points.cc.
References blender::bke::Point.
|
static |
Definition at line 365 of file usd_writer_curves.cc.
References blender::bke::Curve, and blender::bke::Point.
| std::optional< pxr::SdfValueTypeName > blender::io::usd::convert_blender_type_to_usd | ( | const eCustomDataType | blender_type, |
| bool | use_color3f_type ) |
Definition at line 23 of file usd_attribute_utils.cc.
References CD_PROP_BOOL, CD_PROP_BYTE_COLOR, CD_PROP_COLOR, CD_PROP_FLOAT, CD_PROP_FLOAT2, CD_PROP_FLOAT3, CD_PROP_INT32, CD_PROP_INT8, CD_PROP_QUATERNION, and CD_PROP_STRING.
|
static |
Definition at line 89 of file usd_capi_import.cc.
References axis_angle_normalized_to_mat3(), blender::io::usd::ImportSettings::conversion_mat, copy_m4_m3(), blender::io::usd::ImportSettings::do_convert_mat, M_PI_2, stage, unit_m4(), and z().
Referenced by import_startjob(), and USD_create_handle().
|
static |
Definition at line 113 of file usd_reader_curve.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), convert_usd_interp_to_blender(), and blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_ptr().
Referenced by convert_usd_interp_to_blender(), and blender::io::usd::USDCurvesReader::read_custom_data().
| std::optional< eCustomDataType > blender::io::usd::convert_usd_type_to_blender | ( | const pxr::SdfValueTypeName | usd_type | ) |
Definition at line 52 of file usd_attribute_utils.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), CD_PROP_BOOL, CD_PROP_COLOR, CD_PROP_FLOAT, CD_PROP_FLOAT2, CD_PROP_FLOAT3, CD_PROP_INT32, CD_PROP_INT8, CD_PROP_QUATERNION, CD_PROP_STRING, and blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_ptr().
Referenced by blender::io::usd::USDCurvesReader::read_custom_data(), blender::io::usd::USDPointsReader::read_custom_data(), and read_generic_mesh_primvar().
|
static |
Definition at line 57 of file usd_mesh_utils.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), blender::bke::Corner, blender::bke::Face, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_ptr(), and blender::bke::Point.
Referenced by read_generic_mesh_primvar().
| bool blender::io::usd::copy_asset | ( | const char * | src, |
| const char * | dst, | ||
| eUSDTexNameCollisionMode | name_collision_mode, | ||
| ReportList * | reports ) |
Invoke the USD asset resolver to copy an asset.
| src | source path of the asset to copy |
| dst | destination path of the copy |
| name_collision_mode | behavior when dst already exists |
| reports | the storage for potential warning or error reports (generated using BKE_report API). |
Definition at line 154 of file usd_asset_utils.cc.
References BKE_reportf(), RPT_ERROR, RPT_INFO, RPT_WARNING, and USD_TEX_NAME_COLLISION_OVERWRITE.
Referenced by copy_asset_to_directory().
|
static |
Definition at line 84 of file usd_asset_utils.cc.
References BKE_reportf(), BLI_is_file(), BLI_path_join, BLI_path_normalize(), copy_asset(), FILE_MAX, get_asset_base_name(), RPT_WARNING, and USD_TEX_NAME_COLLISION_USE_EXISTING.
Referenced by copy_udim_asset_to_directory(), and import_asset().
| void blender::io::usd::copy_blender_attribute_to_primvar | ( | const GVArray & | attribute, |
| const eCustomDataType | data_type, | ||
| const pxr::UsdTimeCode | timecode, | ||
| const pxr::UsdGeomPrimvar & | primvar, | ||
| pxr::UsdUtilsSparseValueWriter & | value_writer ) |
Definition at line 163 of file usd_attribute_utils.cc.
References BLI_assert_unreachable, CD_PROP_BOOL, CD_PROP_BYTE_COLOR, CD_PROP_COLOR, CD_PROP_FLOAT, CD_PROP_FLOAT2, CD_PROP_FLOAT3, CD_PROP_INT32, CD_PROP_INT8, CD_PROP_QUATERNION, and copy_blender_buffer_to_primvar().
| void blender::io::usd::copy_blender_buffer_to_primvar | ( | const VArray< BlenderT > & | buffer, |
| const pxr::UsdTimeCode | timecode, | ||
| const pxr::UsdGeomPrimvar & | primvar, | ||
| pxr::UsdUtilsSparseValueWriter & | value_writer ) |
Definition at line 119 of file usd_attribute_utils.hh.
References cast(), blender::io::usd::detail::convert_value(), data, blender::VArrayCommon< T >::get_if_single(), and blender::VArrayCommon< T >::size().
Referenced by copy_blender_attribute_to_primvar().
| void blender::io::usd::copy_primvar_to_blender_attribute | ( | const pxr::UsdGeomPrimvar & | primvar, |
| const pxr::UsdTimeCode | timecode, | ||
| const eCustomDataType | data_type, | ||
| const bke::AttrDomain | domain, | ||
| const OffsetIndices< int > | face_indices, | ||
| bke::MutableAttributeAccessor | attributes ) |
Definition at line 99 of file usd_attribute_utils.cc.
References BLI_assert_unreachable, CD_PROP_BOOL, CD_PROP_COLOR, CD_PROP_FLOAT, CD_PROP_FLOAT2, CD_PROP_FLOAT3, CD_PROP_INT32, CD_PROP_INT8, CD_PROP_QUATERNION, copy_primvar_to_blender_buffer(), and ELEM.
Referenced by blender::io::usd::USDCurvesReader::read_custom_data(), blender::io::usd::USDPointsReader::read_custom_data(), and read_generic_mesh_primvar().
| void blender::io::usd::copy_primvar_to_blender_buffer | ( | const pxr::UsdGeomPrimvar & | primvar, |
| const pxr::UsdTimeCode | timecode, | ||
| const OffsetIndices< int > | faces, | ||
| MutableSpan< BlenderT > | attribute ) |
Definition at line 174 of file usd_attribute_utils.hh.
References blender::io::usd::detail::convert_value(), get_primvar_array(), and blender::IndexRange::last().
Referenced by copy_primvar_to_blender_attribute().
|
static |
Definition at line 1049 of file usd_writer_material.cc.
References BKE_reportf(), BLI_copy(), BLI_exists(), BLI_path_cmp_normalized(), BLI_path_join, BLI_path_split_file_part(), CLOG_INFO, FILE_MAX, get_absolute_path(), LOG, and RPT_WARNING.
Referenced by export_texture(), and export_texture().
|
static |
Definition at line 995 of file usd_writer_material.cc.
References BKE_image_get_tile_strformat(), BKE_image_set_filepath_from_tile_number(), BKE_reportf(), BLI_copy(), BLI_exists(), BLI_path_cmp_normalized(), BLI_path_join, BLI_path_split_file_part(), CLOG_INFO, CLOG_WARN, FILE_MAX, FILE_MAXFILE, get_absolute_path(), LISTBASE_FOREACH, LOG, MEM_SAFE_FREE, RPT_WARNING, tile, Image::tiles, and UDIM_TILE_FORMAT_UDIM.
Referenced by export_texture(), and export_texture().
|
static |
Definition at line 112 of file usd_asset_utils.cc.
References asset_exists(), BKE_reportf(), BLI_path_join, copy_asset_to_directory(), FILE_MAX, get_asset_base_name(), RPT_ERROR, split_udim_pattern(), UDIM_END_TILE, UDIM_PATTERN, and UDIM_START_TILE.
Referenced by import_asset().
| void blender::io::usd::create_blend_shapes | ( | pxr::UsdStageRefPtr | stage, |
| const Object * | obj, | ||
| const pxr::UsdPrim & | mesh_prim, | ||
| bool | allow_unicode ) |
Convert shape keys on the given object to USD blend shapes. The blend-shapes will be added to the stage as children of the given USD mesh prim. The blend-shape names and targets will also be set as properties on the primitive.
| stage | The stage |
| obj | The mesh object whose shape keys will be converted to blend shapes |
| mesh_prim | The USD mesh that will be assigned the blend shape targets |
| allow_unicode | Whether to allow unicode encoded characters in the blend shape name |
Definition at line 192 of file usd_blend_shape_utils.cc.
References Key::block, CLOG_WARN, data, KeyBlock::data, ListBase::first, float, get_mesh_shape_key(), indices, LISTBASE_FOREACH, LOG, make_safe_name(), stage, sub_v3_v3v3(), and KeyBlock::totelem.
Referenced by blender::io::usd::USDMeshWriter::init_blend_shapes().
|
static |
Create a collection with the given parent and name.
Definition at line 76 of file usd_reader_stage.cc.
References BKE_collection_add().
Referenced by blender::io::usd::USDStageReader::create_proto_collections().
| void blender::io::usd::create_input | ( | pxr::UsdShadeShader & | shader, |
| const InputSpec & | spec, | ||
| const void * | value, | ||
| float | scale ) |
Definition at line 145 of file usd_writer_material.cc.
References blender::io::usd::InputSpec::input_name, blender::io::usd::InputSpec::input_type, T1, and T2.
Referenced by create_usd_preview_surface_material().
| USDMeshReadParams blender::io::usd::create_mesh_read_params | ( | const double | motion_sample_time, |
| const int | read_flags ) |
Definition at line 578 of file usd_capi_import.cc.
References params.
Referenced by modify_geometry_set(), blender::io::usd::USDMeshReader::read_object_data(), blender::io::usd::USDPointsReader::read_object_data(), and blender::io::usd::USDShapeReader::read_object_data().
| void blender::io::usd::create_pose_joints | ( | pxr::UsdSkelAnimation & | skel_anim, |
| const Object & | obj, | ||
| const Map< StringRef, const Bone * > * | deform_map, | ||
| bool | allow_unicode ) |
Sets the USD joint paths as an attribute on the given USD animation, where the paths correspond to the bones of the given armature.
| skel_anim | The animation whose joints attribute will be set |
| ob_arm | The armature object |
| deform_map | A pointer to a map associating bone names with deform bones and their parents. If the pointer is not null, assume only deform bones are to be exported and bones not found in this map will be skipped |
| allow_unicode | Whether to allow unicode bone names to be used |
Definition at line 112 of file usd_armature_utils.cc.
References BLI_assert, build_usd_joint_path(), bPose::chanbase, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), LISTBASE_FOREACH, and Object::pose.
| void blender::io::usd::create_skel_roots | ( | pxr::UsdStageRefPtr | stage, |
| const USDExportParams & | params ) |
We must structure the scene graph to encapsulate skinned prim under a UsdSkelRoot prim. Per the USD documentation, a SkelRoot is a:
"Boundable prim type used to identify a scope beneath which skeletally-posed primitives are defined. A SkelRoot must be defined at or above a skinned primitive for any skinning behaviors in UsdSkel."
See: https://openusd.org/23.05/api/class_usd_skel_root.html#details
This function attempts to ensure that skinned prims and skeletons are encapsulated under SkelRoots, converting existing Xform primitives to SkelRoots to achieve this, if possible. In the case where no common ancestor which can be converted to a SkelRoot is found, this function issues a warning. One way to address such a case is by setting a root prim in the export options, so that this root prim can be converted to a SkelRoot for the entire scene.
| stage | The stage |
| params | The export parameters |
Definition at line 52 of file usd_skel_root_utils.cc.
References BKE_reportf(), CLOG_INFO, CLOG_WARN, get_xform_ancestor(), LOG, params, RPT_WARNING, and stage.
Referenced by blender::io::usd::USDHierarchyIterator::process_usd_skel().
|
static |
To create a USDZ file, we must first create a .usd/a/c file and then covert it to .usdz. The temporary files will be created in Blender's temporary session storage. The .usdz file will then be moved to job->usdz_filepath.
Definition at line 615 of file usd_capi_export.cc.
References BKE_tempdir_session, BLI_path_basename(), BLI_path_extension_check(), BLI_path_extension_replace(), BLI_path_join, FILE_MAX, STRNCPY, blender::io::usd::ExportJobData::unarchived_filepath, and blender::io::usd::ExportJobData::usdz_filepath.
Referenced by set_job_filepath().
|
static |
Definition at line 491 of file usd_writer_material.cc.
References BKE_reportf(), BLI_assert, copy_v3_v3(), create_usd_preview_shader(), create_uv_input(), bNode::custom1, bNodeLink::fromnode, usdtokens::in(), M_PI, blender::bke::node_find_socket(), usdtokens::result(), rot, usdtokens::rotation(), RPT_WARNING, usdtokens::scale(), SH_NODE_MAPPING, SOCK_IN, TEXMAP_TYPE_POINT, usdtokens::translation(), and bNode::type.
Referenced by create_uv_input().
| pxr::UsdShadeMaterial blender::io::usd::create_usd_material | ( | const USDExporterContext & | usd_export_context, |
| pxr::SdfPath | usd_path, | ||
| Material * | material, | ||
| const std::string & | active_uvmap_name, | ||
| ReportList * | reports ) |
Create USDMaterial from Blender material.
| default_uv | used as the default UV set name sampled by the primvar reader shaders generated for image texture nodes that don't have an attached UVMap node. |
Definition at line 1374 of file usd_writer_material.cc.
References call_material_export_hooks(), create_usd_preview_surface_material(), create_usd_viewport_material(), blender::io::usd::USDExporterContext::export_params, blender::io::usd::USDExportParams::generate_materialx_network, blender::io::usd::USDExportParams::generate_preview_surface, and blender::io::usd::USDExporterContext::stage.
Referenced by blender::io::usd::USDAbstractWriter::ensure_usd_material(), and blender::io::hydra::MaterialData::init().
|
static |
Definition at line 852 of file usd_writer_material.cc.
References create_usd_preview_shader(), usdtokens::file(), get_node_tex_image_color_space(), get_node_tex_image_wrap(), get_tex_image_asset_filepath(), SH_NODE_TEX_IMAGE, usdtokens::sourceColorSpace(), wrap(), usdtokens::wrapS(), and usdtokens::wrapT().
|
static |
Definition at line 806 of file usd_writer_material.cc.
References blender::io::usd::USDExportParams::allow_unicode, blender::io::usd::USDExporterContext::export_params, make_safe_name(), usdtokens::preview_surface(), usdtokens::primvar_float2(), SH_NODE_BSDF_DIFFUSE, SH_NODE_BSDF_PRINCIPLED, SH_NODE_MAPPING, SH_NODE_TEX_COORD, SH_NODE_TEX_IMAGE, SH_NODE_UVMAP, blender::io::usd::USDExporterContext::stage, usdtokens::surface(), usdtokens::UsdTransform2d(), and usdtokens::uv_texture().
Referenced by create_transform2d_shader(), create_usd_preview_shader(), create_usd_preview_surface_material(), and create_uvmap_shader().
|
static |
Definition at line 154 of file usd_writer_material.cc.
References usdtokens::a(), usdtokens::b(), usdtokens::bias(), create_input(), create_usd_preview_shader(), create_uv_input(), bNode::custom1, bNodeSocket::default_value, usdtokens::emissive_color(), blender::io::usd::USDExporterContext::export_params, export_texture(), blender::io::usd::USDExportParams::export_textures, find_bsdf_node(), bNodeLink::fromnode, bNodeLink::fromsock, usdtokens::g(), bNodeSocket::identifier, blender::io::usd::InputSpec::input_name, blender::io::usd::InputSpec::input_type, LISTBASE_FOREACH, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_ptr(), blender::bke::node_find_socket(), NODE_MATH_LESS_THAN, NODE_MATH_ROUND, NODE_MATH_SUBTRACT, NODE_VECTOR_MATH_MULTIPLY_ADD, usdtokens::opacity(), usdtokens::opacityThreshold(), preview_surface_input_map(), usdtokens::r(), usdtokens::rgb(), usdtokens::scale(), blender::io::usd::InputSpec::set_default_value, set_normal_texture_range(), SH_NODE_MATH, SH_NODE_SEPARATE_COLOR, SH_NODE_TEX_IMAGE, SH_NODE_VECTOR_MATH, SOCK_FLOAT, SOCK_IN, SOCK_RGBA, SOCK_VECTOR, usdtokens::st(), STREQ, and traverse_channel().
Referenced by create_usd_material().
|
static |
Definition at line 406 of file usd_writer_material.cc.
References usdtokens::diffuse_color(), usdtokens::metallic(), usdtokens::preview_shader(), usdtokens::preview_surface(), usdtokens::roughness(), blender::io::usd::USDExporterContext::stage, and usdtokens::surface().
Referenced by create_usd_material().
|
static |
Definition at line 579 of file usd_writer_material.cc.
References create_transform2d_shader(), create_uvmap_shader(), blender::io::usd::USDExporterContext::export_params, blender::io::usd::USDExportParams::rename_uvmaps, SH_NODE_MAPPING, SH_NODE_UVMAP, usdtokens::st(), and traverse_channel().
Referenced by create_transform2d_shader(), and create_usd_preview_surface_material().
|
static |
Definition at line 454 of file usd_writer_material.cc.
References blender::io::usd::USDExportParams::allow_unicode, BKE_reportf(), BLI_assert, create_usd_preview_shader(), blender::io::usd::USDExporterContext::export_params, bNodeLink::fromnode, make_safe_name(), bNode::name, blender::io::usd::USDExportParams::rename_uvmaps, usdtokens::result(), RPT_WARNING, SH_NODE_UVMAP, usdtokens::st(), bNode::storage, bNode::type, NodeShaderUVMap::uv_map, and usdtokens::varname().
Referenced by create_uv_input().
|
static |
Definition at line 74 of file usd_writer_abstract.cc.
References CLOG_WARN, IDP_ARRAY, IDP_DOUBLE, IDP_FLOAT, IDP_INT, IDProperty::len, LOG, IDProperty::name, set_vec_attrib(), IDProperty::subtype, and IDProperty::type.
Referenced by blender::io::usd::USDAbstractWriter::write_user_properties().
|
static |
Returns true if the number of curves or the number of curve points in each curve differ.
Definition at line 87 of file usd_reader_curve.cc.
References curves_topology_changed().
Referenced by curves_topology_changed(), and blender::io::usd::USDCurvesReader::read_curve_sample().
|
static |
Definition at line 60 of file usd_reader_stage.cc.
References blender::io::usd::USDPrimReader::decref(), and blender::io::usd::USDPrimReader::refcount().
Referenced by blender::io::usd::USDStageReader::clear_readers().
| void blender::io::usd::dome_light_to_world_material | ( | const USDImportParams & | params, |
| const ImportSettings & | , | ||
| Scene * | scene, | ||
| Main * | bmain, | ||
| const pxr::UsdLuxDomeLight & | dome_light, | ||
| const double | motionSampleTime ) |
Definition at line 384 of file usd_light_convert.cc.
References append_node(), BKE_ntree_update_main_tree(), CLOG_WARN, usdtokens::color(), copy_v3_v3(), bNodeSocket::default_value, DEG_id_tag_update(), bNodeTree::id, Tex::id, ID_RECALC_NTREE_OUTPUT, usdtokens::intensity(), bNodeSocket::link, LISTBASE_FOREACH, load_image(), bNode::locy, LOG, M_PI, mult(), bNodeSocket::next, node, blender::bke::node_add_static_node(), blender::bke::node_find_socket(), blender::bke::node_remove_link(), blender::bke::node_set_active(), blender::bke::node_tree_add_tree(), NODE_VECTOR_MATH_MULTIPLY, bNodeTree::nodes, params, SH_NODE_MAPPING, SH_NODE_OUTPUT_WORLD, SH_NODE_TEX_COORD, SH_NODE_TEX_ENVIRONMENT, SH_NODE_VECTOR_MATH, SOCK_IN, stage, tex, tex_coord, usdtokens::texture_file(), and bNodeSocketValueVector::value.
Referenced by import_startjob().
| void blender::io::usd::ensure_blend_shape_skeleton | ( | pxr::UsdStageRefPtr | stage, |
| pxr::UsdPrim & | mesh_prim ) |
USD implementations expect that a mesh with blend shape targets be bound to a skeleton with an animation that provides the blend shape weights. If the given mesh is not already bound to a skeleton this function will create a dummy skeleton with a single joint and will bind it to the mesh. This is typically required if the source Blender mesh has shape keys but not an armature deformer.
This function will also create a skel animation prim as a child of the skeleton and will copy the weight time samples from a temporary primvar on the mesh to the animation prim.
| stage | The stage |
| mesh_prim | The USD mesh to which the skeleton will be bound |
Definition at line 80 of file usd_blend_shape_utils.cc.
References usdtokens::Anim(), CLOG_WARN, usdtokens::joint1(), LOG, usdtokens::Skel(), stage, and TempBlendShapeWeightsPrimvarName.
Referenced by shape_key_export_chaser().
|
static |
Create the root Xform primitive, if the Root Prim path has been set in the export options. In the future, this function can be extended to author transforms and additional schema data (e.g., model Kind) on the root prim.
Definition at line 151 of file usd_capi_export.cc.
References IO_AXIS_Y, IO_AXIS_Z, M_PI, mat3_from_axis_conversion(), mat3_to_eul(), mul_v3_fl(), params, stage, and transpose_m3().
Referenced by export_to_stage().
| void blender::io::usd::ensure_usd_source_path_prop | ( | const std::string & | path, |
| ID * | id ) |
Add the given path as a custom property "usd_source_path" on the given id. If the path is a package-relative path (i.e., is relative to a USDZ archive) it will not be added a a property. If custom property "usd_source_path" already exists, this function does nothing.
| path | path to record as a custom property |
| id | id for which to create the custom property |
Definition at line 486 of file usd_asset_utils.cc.
References IDP_AddToGroup(), IDP_EnsureProperties(), IDP_GetPropertyFromGroup(), IDP_New(), IDP_STRING, IDP_STRING_SUB_UTF8, IDPropertyTemplate::len, IDPropertyTemplate::str, IDPropertyTemplate::string, and IDPropertyTemplate::subtype.
Referenced by load_image(), and blender::io::usd::USDMaterialReader::load_tex_image().
| void blender::io::usd::export_deform_verts | ( | const Mesh * | mesh, |
| const pxr::UsdSkelBindingAPI & | skel_api, | ||
| Span< std::string > | bone_names ) |
Convert deform groups on the given mesh to USD joint index and weight attributes.
| stage | The source mesh with deform groups to export |
| skel_api | API for setting the attributes on the USD prim |
| bone_names | List of armature bone names corresponding to the deform groups |
Definition at line 1257 of file usd_skel_convert.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BLI_assert, BLI_assert_unreachable, MDeformWeight::def_nr, MDeformVert::dw, blender::Span< T >::index_range(), int, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), LISTBASE_FOREACH, blender::Span< T >::size(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), MDeformVert::totweight, and MDeformWeight::weight.
Referenced by blender::io::usd::USDMeshWriter::init_skinned_mesh().
|
static |
Definition at line 579 of file usd_capi_export.cc.
References BLI_delete(), BLI_exists(), DEG_graph_free(), export_endjob_usdz_cleanup(), G, perform_usdz_conversion(), report_job_duration(), and WM_set_locked_interface().
Referenced by USD_export().
|
static |
Definition at line 561 of file usd_capi_export.cc.
References BKE_tempdir_session, BLI_assert_msg, BLI_delete(), BLI_exists(), BLI_path_join, BLI_path_split_dir_part(), BLI_strcasecmp(), FILE_MAX, and SEP_STR.
Referenced by export_endjob().
|
static |
Definition at line 655 of file usd_writer_material.cc.
References BKE_image_acquire_ibuf(), BKE_image_format_from_imbuf(), BKE_image_path_ext_from_imformat_ensure(), BKE_image_release_ibuf(), BKE_imbuf_write_as(), BKE_reportf(), BLI_exists(), BLI_path_cmp_normalized(), BLI_path_join, BLI_path_split_file_part(), BLI_SCOPED_DEFER, CLOG_INFO, FILE_MAX, Image::filepath, get_absolute_path(), Image::id, image_abs_path(), LOG, ID::name, RPT_WARNING, and STRNCPY.
Referenced by export_texture(), and export_texture().
|
static |
Definition at line 1403 of file usd_writer_material.cc.
References asset_exists(), BKE_ftype_to_imtype(), BKE_image_path_ext_from_imtype_ensure(), BLI_path_join, BLI_path_split_file_part(), BLI_string_replace_char(), BLI_strncpy(), CLOG_INFO, FILE_MAX, Image::id, ID_BLEND_PATH_FROM_GLOBAL, IMA_SRC_TILED, image_abs_path(), IMB_FTYPE_NONE, IMB_ispic_type_from_memory(), len, LISTBASE_FOREACH, LOG, ID::name, Image::packedfiles, paths_equal(), pf, SNPRINTF, Image::source, STRNCPY, STRNCPY_RLEN, USD_path_abs(), and write_to_path().
Referenced by export_texture().
|
static |
Perform validation of export parameter settings.
Definition at line 134 of file usd_capi_export.cc.
References params, and prim_path_valid().
Referenced by USD_export().
|
static |
Definition at line 513 of file usd_capi_export.cc.
References BKE_reportf(), BKE_scene_graph_update_tagged(), wmJobWorkerStatus::do_update, blender::io::usd::ExportJobData::export_ok, export_to_stage(), G, wmJobWorkerStatus::progress, wmJobWorkerStatus::reports, RPT_ERROR, and WM_set_locked_interface().
Referenced by USD_export().
| void blender::io::usd::export_texture | ( | bNode * | node, |
| const pxr::UsdStageRefPtr | stage, | ||
| const bool | allow_overwrite, | ||
| ReportList * | reports ) |
Definition at line 1477 of file usd_writer_material.cc.
References CLOG_ERROR, copy_single_file(), copy_tiled_textures(), ELEM, export_in_memory_texture(), export_packed_texture(), get_export_textures_dir(), IMA_SRC_TILED, is_in_memory_texture(), is_packed_texture(), LOG, SH_NODE_TEX_ENVIRONMENT, SH_NODE_TEX_IMAGE, Image::source, and stage.
|
static |
Definition at line 1469 of file usd_writer_material.cc.
References blender::io::usd::USDExporterContext::export_params, export_texture(), blender::io::usd::USDExportParams::overwrite_textures, wmJobWorkerStatus::reports, blender::io::usd::USDExporterContext::stage, and blender::io::usd::USDExportParams::worker_status.
Referenced by create_usd_preview_surface_material(), export_texture(), export_texture(), and node_search().
|
static |
Definition at line 1119 of file usd_writer_material.cc.
References blender::io::usd::USDExporterContext::export_params, export_texture(), blender::io::usd::USDExportParams::overwrite_textures, wmJobWorkerStatus::reports, blender::io::usd::USDExporterContext::stage, and blender::io::usd::USDExportParams::worker_status.
|
static |
Definition at line 1084 of file usd_writer_material.cc.
References BKE_image_has_packedfile(), BKE_image_is_dirty(), BLI_dir_create_recursive(), BLI_path_join, BLI_path_split_dir_part(), copy_single_file(), copy_tiled_textures(), export_in_memory_texture(), FILE_MAX, IMA_SRC_GENERATED, IMA_SRC_TILED, SEP_STR, Image::source, and stage.
| pxr::UsdStageRefPtr blender::io::usd::export_to_stage | ( | const USDExportParams & | params, |
| Depsgraph * | depsgraph, | ||
| const char * | filepath ) |
Definition at line 383 of file usd_capi_export.cc.
References BKE_blender_version_string(), BKE_scene_graph_update_for_newframe(), BKE_scene_graph_update_tagged(), call_export_hooks(), DEG_get_bmain(), DEG_get_input_scene(), depsgraph, blender::io::SubdivModifierDisabler::disable_modifiers(), wmJobWorkerStatus::do_update, ELEM, ensure_root_prim(), FPS, G, int, IO_AXIS_X, IO_AXIS_Y, blender::io::AbstractHierarchyIterator::iterate_and_write(), params, blender::io::usd::USDHierarchyIterator::process_usd_skel(), wmJobWorkerStatus::progress, register_hook_converters(), blender::io::AbstractHierarchyIterator::release_writers(), blender::io::usd::USDHierarchyIterator::set_export_frame(), wmJobWorkerStatus::stop, USD_SUBDIV_BEST_MATCH, USD_SUBDIV_IGNORE, world_material_to_dome_light(), and z().
Referenced by export_startjob(), and blender::io::hydra::USDSceneDelegate::populate().
Definition at line 794 of file usd_writer_material.cc.
Referenced by create_usd_preview_surface_material().
| Material * blender::io::usd::find_existing_material | ( | const pxr::SdfPath & | usd_mat_path, |
| const USDImportParams & | params, | ||
| const blender::Map< std::string, Material * > & | mat_map, | ||
| const blender::Map< std::string, std::string > & | usd_path_to_mat_name ) |
Returns an existing Blender material that corresponds to the USD material with the given path. Returns null if no such material exists.
| mat_map | Map a material name to a Blender material. Note that the name key might be the Blender material name modified to be a valid USD identifier, to match the material names in the imported USD. |
| usd_path_to_mat_name | Map a USD material path to the imported Blender material name. |
The usd_path_to_mat_name is needed to determine the name of the Blender material imported from a USD path in the case when a unique name was generated for the material due to a name collision.
Definition at line 1394 of file usd_reader_material.cc.
References BLI_assert_msg, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_default(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_ptr(), params, and USD_MTL_NAME_COLLISION_MAKE_UNIQUE.
Referenced by utils::assign_materials(), and blender::io::usd::USDStageReader::import_all_materials().
|
static |
Definition at line 242 of file usd_export_test.cc.
Referenced by TEST_F().
|
static |
Find the lowest level of Blender generated roots so that round tripping an export can be more invisible
Definition at line 114 of file usd_capi_import.cc.
References blender::io::usd::ImportSettings::skip_prefix, and stage.
Referenced by import_startjob(), and USD_create_handle().
|
static |
Definition at line 68 of file usd_capi_import.cc.
References BLI_addtail(), gather_objects_paths(), MEM_callocN, CacheObjectPath::path, and STRNCPY.
Referenced by gather_objects_paths(), and USD_create_handle().
|
static |
Definition at line 709 of file usd_writer_material.cc.
References BLI_path_abs(), BLI_path_normalize(), BLI_strncpy(), FILE_MAX, Image::filepath, Image::id, and ID_BLEND_PATH_FROM_GLOBAL.
Referenced by copy_single_file(), copy_tiled_textures(), export_in_memory_texture(), and get_tex_image_asset_filepath().
| void blender::io::usd::get_armature_bone_names | ( | const Object * | ob_arm, |
| bool | use_deform, | ||
| Vector< std::string > & | r_names ) |
Return in 'r_names' the names of the given armature object's bones.
| ob_arm | The armature object |
| use_deform | If true, use only deform bone names, including their parents, to match armature export joint indices |
| r_names | The returned list of bone names |
Definition at line 79 of file usd_armature_utils.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), init_deform_bones_map(), Bone::name, and visit_bones().
Referenced by blender::io::usd::USDMeshWriter::init_skinned_mesh().
|
static |
Definition at line 58 of file usd_armature_utils.cc.
References depsgraph, eModifierType_Armature, get_enabled_modifier(), and mod().
Referenced by get_armature_modifier_obj(), and is_armature_modifier_bone_name().
| const Object * blender::io::usd::get_armature_modifier_obj | ( | const Object & | obj, |
| const Depsgraph * | depsgraph ) |
If the given object has an enabled armature modifier, return the armature object bound to the modifier.
| Object to check for the modifier | |
| depsgraph | The dependency graph where the object was evaluated |
Definition at line 138 of file usd_armature_utils.cc.
References depsgraph, get_armature_modifier(), and mod().
Referenced by blender::io::usd::USDMeshWriter::init_skinned_mesh(), and skinned_mesh_export_chaser().
|
static |
Definition at line 60 of file usd_asset_utils.cc.
References BKE_reportf(), BLI_path_split_file_part(), FILE_MAXFILE, and RPT_WARNING.
Referenced by copy_asset_to_directory(), and copy_udim_asset_to_directory().
| pxr::VtFloatArray blender::io::usd::get_blendshape_weights | ( | const Key * | key | ) |
Return the current weight values of the given key.
| key | The key whose values will be queried |
Definition at line 286 of file usd_blend_shape_utils.cc.
References BLI_assert, Key::block, ListBase::first, and LISTBASE_FOREACH.
Referenced by blender::io::usd::USDMeshWriter::add_shape_key_weights_sample().
|
static |
Definition at line 96 of file usd_reader_curve.cc.
References CURVE_TYPE_BEZIER, CURVE_TYPE_CATMULL_ROM, CURVE_TYPE_NURBS, CURVE_TYPE_POLY, and get_curve_type().
Referenced by get_curve_type(), and blender::io::usd::USDCurvesReader::read_curve_sample().
|
static |
Definition at line 87 of file usd_writer_curves.cc.
References BKE_report(), is_cyclic(), and RPT_WARNING.
Referenced by populate_curve_props(), and populate_curve_props_for_bezier().
|
static |
Definition at line 545 of file usd_writer_mesh.cc.
References blender::io::usd::USDMeshData::crease_lengths, blender::io::usd::USDMeshData::crease_sharpnesses, blender::io::usd::USDMeshData::crease_vertex_indices, blender::bke::Edge, and get_edge_creases().
Referenced by get_edge_creases().
| const ModifierData * blender::io::usd::get_enabled_modifier | ( | const Object & | obj, |
| ModifierType | type, | ||
| const Depsgraph * | depsgraph ) |
Return the modifier of the given type enabled for the given dependency graph's evaluation mode (viewport or render).
| obj | Object to query for the modifier |
| depsgraph | The dependency graph where the object was evaluated |
Definition at line 33 of file usd_armature_utils.cc.
References BKE_modifier_is_enabled(), BLI_assert, DEG_get_input_scene(), DEG_get_mode(), depsgraph, LISTBASE_FOREACH, and Object::modifiers.
Referenced by can_export_skinned_mesh(), and get_armature_modifier().
| std::string blender::io::usd::get_export_textures_dir | ( | const pxr::UsdStageRefPtr | stage | ) |
Invoke the USD asset resolver to return an identifier for a 'textures' directory which is a sibling of the given stage. The resulting path is created by resolving the './textures' relative path with the stage's root layer path as the anchor. If the parent of the stage root layer path resolves to a file system path, the textures directory will be created, if it doesn't exist.
| stage | The stage whose root layer is a sibling of the 'textures' directory |
Definition at line 352 of file usd_asset_utils.cc.
References BLI_dir_create_recursive(), parent_dir_exists_on_file_system(), RPT_WARNING, stage, and WM_reportf().
Referenced by export_texture().
| std::string blender::io::usd::get_image_cache_file | ( | const std::string & | file_name, |
| bool | mkdir ) |
Definition at line 342 of file usd_capi_export.cc.
References BLI_dir_create_recursive(), BLI_path_join, FILE_MAX, and image_cache_file_path().
Referenced by cache_image_color(), and blender::io::hydra::cache_image_file().
|
static |
Definition at line 618 of file usd_writer_material.cc.
References BKE_image_acquire_ibuf(), BKE_image_format_from_imbuf(), BKE_image_has_packedfile(), BKE_image_is_dirty(), BKE_image_path_ext_from_imformat_ensure(), BKE_image_release_ibuf(), BLI_string_split_suffix(), FILE_MAX, Image::id, IMA_SRC_GENERATED, IMA_SRC_TILED, ID::name, SNPRINTF, Image::source, and STRNCPY.
Referenced by get_tex_image_asset_filepath().
|
static |
Definition at line 61 of file usd_writer_mesh.cc.
References BLI_assert, DAG_EVAL_RENDER, eModifierMode_Realtime, eModifierMode_Render, eModifierType_Subsurf, ListBase::last, ModifierData::mode, Object::modifiers, and ModifierData::type.
Referenced by blender::io::usd::USDGenericMeshWriter::do_write().
|
static |
Definition at line 520 of file usd_writer_mesh.cc.
References blender::Span< T >::begin(), blender::offset_indices::copy_group_sizes(), blender::Span< T >::end(), blender::bke::Face, blender::io::usd::USDMeshData::face_groups, blender::io::usd::USDMeshData::face_indices, blender::io::usd::USDMeshData::face_vertex_counts, get_loops_polys(), blender::Span< T >::index_range(), blender::VArrayCommon< T >::is_single(), and blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_or_add_default().
Referenced by get_loops_polys().
Return the shape key on the given mesh object.
| obj | The mesh object |
Definition at line 173 of file usd_blend_shape_utils.cc.
References BLI_assert, Object::data, Mesh::key, OB_MESH, and Object::type.
Referenced by blender::io::usd::USDMeshWriter::add_shape_key_weights_sample(), create_blend_shapes(), and is_mesh_with_shape_keys().
|
static |
Definition at line 717 of file usd_writer_material.cc.
References Image::colorspace_settings, IMB_colormanagement_space_name_is_data(), IMB_colormanagement_space_name_is_srgb(), ColorManagedColorspaceSettings::name, usdtokens::raw(), and usdtokens::sRGB().
Referenced by create_usd_preview_shader().
|
static |
Definition at line 735 of file usd_writer_material.cc.
References usdtokens::black(), usdtokens::clamp(), NodeTexImage::extension, usdtokens::mirror(), usdtokens::repeat(), SH_NODE_TEX_IMAGE, SHD_IMAGE_EXTENSION_CLIP, SHD_IMAGE_EXTENSION_EXTEND, SHD_IMAGE_EXTENSION_MIRROR, SHD_IMAGE_EXTENSION_REPEAT, and wrap().
Referenced by create_usd_preview_shader().
|
static |
Definition at line 514 of file usd_writer_mesh.cc.
References blender::Span< T >::cast(), get_positions(), and blender::io::usd::USDMeshData::points.
Referenced by get_positions().
| pxr::VtArray< T > blender::io::usd::get_primvar_array | ( | const pxr::UsdGeomPrimvar & | primvar, |
| const pxr::UsdTimeCode | timecode ) |
Definition at line 158 of file usd_attribute_utils.hh.
Referenced by copy_primvar_to_blender_buffer(), and read_face_display_color().
| std::string blender::io::usd::get_relative_path | ( | const std::string & | path, |
| const std::string & | anchor ) |
Return the given path as a relative path with respect to the given anchor path.
| path | path to make relative with respect to the anchor path |
| anchor | the anchor path |
Definition at line 541 of file usd_asset_utils.cc.
References BLI_is_file(), BLI_path_is_rel(), BLI_path_rel(), BLI_path_split_dir_part(), BLI_string_replace_char(), BLI_strnlen(), FILE_MAX, and STRNCPY.
Referenced by get_tex_image_asset_filepath().
If the given object is a mesh with shape keys, return a copy of the object's pre-modified mesh with its verts in the shape key basis positions. The returned mesh must be freed by the caller.
| obj | The mesh object with shape keys |
Definition at line 430 of file usd_blend_shape_utils.cc.
References BKE_keyblock_convert_to_mesh(), BKE_mesh_copy_for_eval(), BKE_object_get_pre_modified_mesh(), CLOG_WARN, Object::data, Object::id, LOG, ID::name, OB_MESH, KeyBlock::totelem, Object::type, and Mesh::verts_num.
Referenced by blender::io::usd::USDMeshWriter::get_export_mesh().
| std::string blender::io::usd::get_tex_image_asset_filepath | ( | bNode * | node, |
| const pxr::UsdStageRefPtr | stage, | ||
| const USDExportParams & | export_params ) |
Gets an asset path for the given texture image / node. The resulting path may be absolute, relative to the USD file, or in a 'textures' directory in the same directory as the USD file, depending on the export parameters. The filename is typically the image filepath but might also be automatically generated based on the image name for in-memory textures when exporting textures. This function may return an empty string if the image does not have a filepath assigned and no asset path could be determined.
Definition at line 985 of file usd_writer_material.cc.
References get_tex_image_asset_filepath(), and stage.
|
static |
Definition at line 884 of file usd_writer_material.cc.
References FILE_MAX, and get_absolute_path().
| std::string blender::io::usd::get_tex_image_asset_filepath | ( | const std::string & | asset_path, |
| const std::string & | stage_path, | ||
| const USDExportParams & | export_params ) |
Return a USD asset path referencing the given texture file. The resulting path may be absolute, relative to the USD file, or in a 'textures' directory in the same directory as the USD file, depending on the export parameters.
Definition at line 936 of file usd_writer_material.cc.
References BLI_path_join, BLI_path_split_dir_part(), BLI_path_split_file_part(), BLI_string_replace_char(), blender::io::usd::USDExportParams::export_textures, FILE_MAX, get_relative_path(), and blender::io::usd::USDExportParams::relative_paths.
|
static |
Definition at line 892 of file usd_writer_material.cc.
References blender::io::usd::USDExporterContext::export_params, get_tex_image_asset_filepath(), and blender::io::usd::USDExporterContext::stage.
Referenced by create_usd_preview_shader(), get_tex_image_asset_filepath(), get_tex_image_asset_filepath(), get_tex_image_asset_filepath(), and node_search().
| std::string blender::io::usd::get_tex_image_asset_filepath | ( | Image * | ima, |
| const pxr::UsdStageRefPtr | stage, | ||
| const USDExportParams & | export_params ) |
Definition at line 899 of file usd_writer_material.cc.
References BLI_path_join, blender::io::usd::USDExportParams::export_textures, FILE_MAX, Image::filepath, get_in_memory_texture_filename(), get_tex_image_asset_filepath(), get_usd_source_path(), Image::id, is_in_memory_texture(), is_packed_texture(), stage, and blender::io::usd::USDExportParams::use_original_paths.
|
static |
If the given path already exists on the given stage, return the path with a numerical suffix appended to the name that ensures the path is unique. If the path does not exist on the stage, it will be returned unchanged.
Definition at line 117 of file usd_light_convert.cc.
References stage.
Referenced by world_material_to_dome_light().
|
static |
Definition at line 563 of file usd_capi_import.cc.
References blender::io::usd::USDPrimReader::prim(), and RPT_.
Referenced by USD_mesh_topology_changed(), and USD_read_geometry().
| std::string blender::io::usd::get_usd_source_path | ( | ID * | id | ) |
Return the value of the "usd_source_path" custom property on the given id. Return an empty string if the property does not exist.
Definition at line 521 of file usd_asset_utils.cc.
References IDProperty::data, IDP_EnsureProperties(), IDP_GetPropertyFromGroup(), and IDPropertyData::pointer.
Referenced by get_tex_image_asset_filepath().
|
static |
Definition at line 570 of file usd_writer_mesh.cc.
References blender::io::usd::USDMeshData::corner_indices, blender::io::usd::USDMeshData::corner_sharpnesses, get_vert_creases(), blender::Span< T >::index_range(), and blender::bke::Point.
Referenced by get_vert_creases().
|
static |
Definition at line 58 of file usd_capi_import.cc.
Referenced by USD_create_handle().
|
static |
Definition at line 178 of file usd_hook.cc.
References BKE_reportf(), blender::io::usd::USDHook::name, and RPT_ERROR.
Referenced by blender::io::usd::USDHookInvoker::call().
|
static |
Definition at line 36 of file usd_hook.cc.
Referenced by blender::io::usd::USDHookInvoker::call(), call_export_hooks(), call_import_hooks(), call_material_export_hooks(), register_hook_converters(), USD_find_hook_name(), USD_register_hook(), and USD_unregister_hook().
| std::string blender::io::usd::image_cache_file_path | ( | ) |
Definition at line 335 of file usd_capi_export.cc.
References BKE_tempdir_session, BLI_path_join, and FILE_MAX.
Referenced by blender::io::hydra::cache_or_get_image_file(), get_image_cache_file(), and blender::io::hydra::MaterialData::init().
| std::string blender::io::usd::import_asset | ( | const char * | src, |
| const char * | import_dir, | ||
| eUSDTexNameCollisionMode | name_collision_mode, | ||
| ReportList * | reports ) |
Invoke the USD asset resolver to copy an asset to a destination directory and return the path to the copied file. This function may be used to copy textures from a USDZ archive to a directory on disk. The destination directory will be created if it doesn't already exist. If the copy was unsuccessful, this function will log an error and return the original source file path unmodified.
| src | source path of the asset to import |
| import_dir | path to the destination directory |
| name_collision_mode | behavior when a file of the same name already exists |
| reports | the storage for potential warning or error reports (generated using BKE_report API). |
src path if there was an error Definition at line 277 of file usd_asset_utils.cc.
References BKE_main_blendfile_path_from_global(), BKE_reportf(), BLI_dir_create_recursive(), BLI_path_abs(), BLI_path_is_rel(), BLI_path_normalize(), copy_asset_to_directory(), copy_udim_asset_to_directory(), FILE_MAX, FILE_MAXDIR, is_udim_path(), RPT_ERROR, and STRNCPY.
Referenced by load_image(), and blender::io::usd::USDMaterialReader::load_tex_image().
| void blender::io::usd::import_blendshapes | ( | Main * | bmain, |
| Object * | mesh_obj, | ||
| const pxr::UsdPrim & | prim, | ||
| ReportList * | reports, | ||
| bool | import_anim = true ) |
This file contains utilities for converting between UsdSkel data and Blender armatures and shape keys. The following is a reference on the UsdSkel API:
https://openusd.org/23.05/api/usd_skel_page_front.html Import USD blend shapes from a USD primitive as shape keys on a mesh object. Optionally, if the blend shapes have animating weights, the time-sampled weights will be imported as shape key animation curves. If the USD primitive does not have blend shape targets defined, this function is a no-op.
| bmain | Main pointer |
| mesh_obj | Mesh object to which imported shape keys will be added |
| prim | The USD primitive from which blend-shapes will be imported |
| reports | the storage for potential warning or error reports (generated using BKE_report API). |
| import_anim | Whether to import time-sampled weights as shape key animation curves |
Definition at line 378 of file usd_skel_convert.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), add_v3_v3(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BKE_fcurve_handles_recalc(), BKE_key_add(), BKE_keyblock_add(), BKE_keyblock_convert_from_mesh(), BKE_reportf(), BLI_addtail(), CLOG_WARN, blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), bAction::curves, data, KeyBlock::data, Object::data, Key::id, blender::animrig::id_action_ensure(), KEY_RELATIVE, LOG, OB_MESH, point, RPT_WARNING, stage, KeyBlock::totelem, FCurve::totvert, Key::type, and Object::type.
Referenced by blender::io::usd::USDMeshReader::read_object_data().
|
static |
Definition at line 379 of file usd_capi_import.cc.
References BKE_collection_object_add(), BKE_id_free_us(), BKE_layer_collection_get_active(), BKE_report(), BKE_view_layer_base_deselect_all(), BKE_view_layer_base_find(), BKE_view_layer_base_select_and_set_active(), BKE_view_layer_synced_ensure(), call_import_hooks(), LayerCollection::collection, DEG_id_tag_update(), DEG_id_tag_update_ex(), DEG_relations_tag_update(), ED_undo_push(), Collection::id, Object::id, ID_RECALC_ANIMATION, ID_RECALC_BASE_FLAGS, ID_RECALC_GEOMETRY, ID_RECALC_SYNC_TO_EVAL, ID_RECALC_TRANSFORM, MEM_SAFE_FREE, NA_ADDED, NC_ID, register_hook_converters(), report_job_duration(), RPT_ERROR, USD_ARCHIVE_FAIL, USD_NO_ERROR, WM_main_add_notifier(), and WM_set_locked_interface().
Referenced by USD_import().
|
static |
Definition at line 489 of file usd_capi_import.cc.
References blender::io::usd::ImportJobData::archive, and data.
Referenced by USD_import().
| void blender::io::usd::import_mesh_skel_bindings | ( | Main * | bmain, |
| Object * | mesh_obj, | ||
| const pxr::UsdPrim & | prim, | ||
| ReportList * | reports ) |
Import skinning data from a source USD prim as deform groups and an armature modifier on the given mesh object. If the USD prim does not have a skeleton binding defined, this function is a no-op.
| bmain | Main pointer |
| obj | Mesh object to which an armature modifier will be added |
| prim | The USD primitive from which skinning data will be imported |
| reports | the storage for potential warning or error reports (generated using BKE_report API). |
Definition at line 941 of file usd_skel_convert.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::begin(), BKE_modifier_new(), BKE_modifiers_findby_type(), BKE_modifiers_persistent_uid_init(), BKE_object_defgroup_add_name(), BKE_object_defgroup_data_create(), BKE_object_defgroup_find_name(), BKE_reportf(), BLI_addtail(), CLOG_WARN, Object::data, ELEM, eModifierType_Armature, blender::Vector< T, InlineBufferCapacity, Allocator >::end(), Object::id, interp(), blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), LOG, Object::modifiers, ID::name, OB_MESH, RPT_WARNING, Object::type, blender::ed::object::vgroup_vert_add(), w(), and WEIGHT_REPLACE.
Referenced by blender::io::usd::USDMeshReader::read_object_data().
| void blender::io::usd::import_skeleton | ( | Main * | bmain, |
| Object * | arm_obj, | ||
| const pxr::UsdSkelSkeleton & | skel, | ||
| ReportList * | reports, | ||
| bool | import_anim = true ) |
Import the given USD skeleton as an armature object. Optionally, if the skeleton has an animation defined, the time sampled joint transforms will be imported as bone animation curves.
| bmain | Main pointer |
| arm_obj | Armature object to which the bone hierarchy will be added |
| skel | The USD skeleton from which bones and animation will be imported |
| reports | the storage for potential warning or error reports (generated using BKE_report API). |
| import_anim | Whether to import time-sampled joint transforms as bone animation curves |
Definition at line 675 of file usd_skel_convert.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BKE_reportf(), BlenderBoneLengths(), CLOG_WARN, copy_v3_v3(), Object::data, ED_armature_ebone_add(), ED_armature_ebone_from_mat4(), ED_armature_edit_free(), ED_armature_from_edit(), ED_armature_to_edit(), EditBone::head, LOG, mat4, EditBone::name, OB_ARMATURE, RPT_WARNING, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), EditBone::tail, and Object::type.
Referenced by blender::io::usd::USDSkeletonReader::read_object_data().
|
static |
Definition at line 194 of file usd_capi_import.cc.
References BKE_cachefile_add(), BKE_collection_add(), BKE_layer_collection_first_from_scene_collection(), BKE_main_blendfile_path_from_global(), BKE_reportf(), BKE_view_layer_synced_ensure(), BLI_path_abs(), BLI_path_basename(), BLI_path_to_display_name(), blender::io::usd::USDStageReader::collect_readers(), convert_to_z_up(), data, DEG_id_tag_update(), DEG_relations_tag_update(), wmJobWorkerStatus::do_update, dome_light_to_world_material(), blender::io::usd::USDStageReader::dome_lights(), find_prefix_to_skip(), blender::Vector< T, InlineBufferCapacity, Allocator >::first(), float, G, Collection::id, ID_RECALC_SYNC_TO_EVAL, id_us_min(), blender::io::usd::USDStageReader::import_all_materials(), blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), MAX_ID_NAME, blender::io::usd::USDPrimReader::object(), blender::io::usd::USDPrimReader::parent(), Object::parent, blender::io::usd::USDStageReader::process_armature_modifiers(), wmJobWorkerStatus::progress, blender::io::usd::USDStageReader::readers(), wmJobWorkerStatus::reports, RPT_ERROR, size(), blender::io::usd::USDStageReader::sort_readers(), stage, blender::io::usd::ImportJobData::stop, wmJobWorkerStatus::stop, STRNCPY, USD_ARCHIVE_FAIL, and WM_set_locked_interface().
Referenced by USD_import().
| void blender::io::usd::init_deform_bones_map | ( | const Object * | obj, |
| Map< StringRef, const Bone * > * | deform_map ) |
Initialize the deform bones map:
| obj | Object to query |
| deform_map | A pointer to the deform_map to fill with deform bones and their parents found on the object |
Definition at line 164 of file usd_armature_utils.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), BLI_assert, BONE_NO_DEFORM, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::clear(), Bone::flag, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::items(), Bone::name, Bone::parent, and visit_bones().
Referenced by blender::io::usd::USDArmatureWriter::do_write(), and get_armature_bone_names().
| bool blender::io::usd::is_armature_modifier_bone_name | ( | const Object & | obj, |
| const StringRefNull | name, | ||
| const Depsgraph * | depsgraph ) |
If the given object has an armature modifier, query whether the given name matches the name of a bone on the armature referenced by the modifier.
| obj | Object to query for the modifier |
| name | Name to check |
| depsgraph | The dependency graph where the object was evaluated |
Definition at line 144 of file usd_armature_utils.cc.
References BKE_armature_find_bone_name(), Object::data, depsgraph, get_armature_modifier(), and ArmatureModifierData::object.
|
static |
Definition at line 606 of file usd_writer_material.cc.
References BKE_image_is_dirty(), IMA_SRC_GENERATED, and Image::source.
Referenced by export_texture(), and get_tex_image_asset_filepath().
| bool blender::io::usd::is_mesh_with_shape_keys | ( | const Object * | obj | ) |
Query whether the given object is a mesh with relative shape keys.
| obj | The mesh object |
Definition at line 186 of file usd_blend_shape_utils.cc.
References get_mesh_shape_key(), KEY_RELATIVE, Key::totkey, and Key::type.
Referenced by blender::io::usd::USDMeshWriter::set_skel_export_flags().
|
static |
Definition at line 611 of file usd_writer_material.cc.
References BKE_image_has_packedfile().
Referenced by export_texture(), and get_tex_image_asset_filepath().
| bool blender::io::usd::is_udim_path | ( | const std::string & | path | ) |
Check if the given path contains a UDIM token.
| path | the path to check |
Definition at line 346 of file usd_asset_utils.cc.
References UDIM_PATTERN, and UDIM_PATTERN2.
Referenced by import_asset(), blender::io::usd::USDMaterialReader::load_tex_image(), and should_import_asset().
|
static |
Load the image at the given path. Handle packing and copying based in the import options. Return the opened image on success or a nullptr on failure.
Definition at line 131 of file usd_light_convert.cc.
References BKE_image_has_packedfile(), BKE_image_load_exists(), BKE_image_packfiles(), BLI_delete(), BLI_is_dir(), ensure_usd_source_path_prop(), ID_BLEND_PATH, image(), import_asset(), params, should_import_asset(), temp_textures_dir(), USD_TEX_IMPORT_NONE, USD_TEX_IMPORT_PACK, and USD_TEX_NAME_COLLISION_OVERWRITE.
Referenced by dome_light_to_world_material().
| std::string blender::io::usd::make_safe_name | ( | const std::string & | name, |
| bool | allow_unicode ) |
Return a valid USD identifier based on the passed in string.
| name | Incoming name to sanitize |
| allow_unicode | Whether to allow unicode encoded characters in the USD identifier |
Definition at line 16 of file usd_utils.cc.
References BLI_str_utf8_from_unicode().
Referenced by utils::assign_materials(), build_material_map(), build_usd_joint_path(), create_blend_shapes(), create_usd_preview_shader(), create_uvmap_shader(), blender::io::usd::USDVolumeWriter::do_write(), blender::io::usd::USDAbstractWriter::ensure_usd_material(), blender::io::usd::USDStageReader::import_all_materials(), blender::io::usd::USDHierarchyIterator::make_valid_name(), TEST(), and blender::io::usd::USDAbstractWriter::write_user_properties().
|
static |
Definition at line 287 of file usd_reader_stage.cc.
References blender::io::usd::USDPrimReader::prim(), blender::io::usd::USDXformReader::prim_has_xform_ops(), blender::io::usd::USDXformReader::set_use_parent_xform(), and blender::io::usd::USDXformReader::use_parent_xform().
Referenced by blender::io::usd::USDPrimReader::set_props().
|
static |
Callback function for iterating over a shader node chain to retrieve data necessary for converting a world material to a USD dome light. It also handles copying textures, if required.
Definition at line 206 of file usd_light_convert.cc.
References copy_v3_fl(), copy_v3_v3(), bNode::custom1, bNodeSocket::default_value, export_texture(), blender::io::usd::USDExportParams::export_textures, get_tex_image_asset_filepath(), bNodeSocket::next, blender::bke::node_find_socket(), NODE_VECTOR_MATH_MULTIPLY, blender::io::usd::USDExportParams::overwrite_textures, SH_NODE_MAPPING, SH_NODE_TEX_ENVIRONMENT, SH_NODE_VECTOR_MATH, SOCK_IN, bNode::type, bNodeSocketValueRGBA::value, and bNodeSocketValueVector::value.
Referenced by world_material_to_dome_light().
|
static |
Returns true if the parent directory of the given path exists on the file system.
| path | input file path |
Definition at line 339 of file usd_asset_utils.cc.
References BLI_is_dir(), BLI_path_split_dir_part(), and FILE_MAX.
Referenced by get_export_textures_dir(), and should_import_asset().
| bool blender::io::usd::paths_equal | ( | const char * | p1, |
| const char * | p2 ) |
Invokes the USD asset resolver to resolve the given paths and returns true if the resolved paths are equal.
| p1 | first path to compare |
| p2 | second path to compare |
Definition at line 404 of file usd_asset_utils.cc.
References BLI_assert_msg, and BLI_path_is_rel().
Referenced by export_packed_texture().
|
static |
For usdz export, we must first create a usd/a/c file and then covert it to usdz. In Blender's case, we first create a usdc file in Blender's temporary working directory, and store the path to the usdc file in unarchived_filepath. This function then does the conversion of that usdc file into usdz.
Definition at line 282 of file usd_capi_export.cc.
References BKE_reportf(), BLI_assert, BLI_change_working_dir(), BLI_current_working_dir(), BLI_delete(), BLI_exists(), BLI_path_join, BLI_path_move(), BLI_path_split_dir_file(), BLI_path_split_file_part(), FILE_MAX, process_usdz_textures(), and RPT_ERROR.
Referenced by export_endjob().
|
static |
Definition at line 40 of file usd_reader_curve.cc.
References bezier_point_count(), CURVE_TYPE_BEZIER, and is_cyclic().
Referenced by blender::io::usd::USDHairWriter::do_write(), and blender::io::usd::USDCurvesReader::read_curve_sample().
|
static |
Definition at line 158 of file usd_writer_curves.cc.
References get_curve_width_interpolation(), is_cyclic(), populate_curve_verts(), populate_curve_widths(), and verts.
Referenced by blender::io::usd::USDCurvesWriter::do_write().
|
static |
Definition at line 243 of file usd_writer_curves.cc.
References get_curve_width_interpolation(), is_cyclic(), populate_curve_verts_for_bezier(), populate_curve_widths(), and verts.
Referenced by blender::io::usd::USDCurvesWriter::do_write().
|
static |
Definition at line 267 of file usd_writer_curves.cc.
References blender::bke::curves::nurbs::calculate_knots(), int, is_cyclic(), blender::bke::curves::nurbs::knots_num(), populate_curve_widths(), blender::offset_indices::OffsetIndices< T >::size(), and verts.
Referenced by blender::io::usd::USDCurvesWriter::do_write().
|
static |
Definition at line 120 of file usd_writer_curves.cc.
References is_cyclic(), blender::offset_indices::OffsetIndices< T >::size(), and verts.
Referenced by populate_curve_props().
|
static |
Definition at line 180 of file usd_writer_curves.cc.
References is_cyclic(), blender::offset_indices::OffsetIndices< T >::size(), blender::Span< T >::size(), and verts.
Referenced by populate_curve_props_for_bezier().
|
static |
Definition at line 74 of file usd_writer_curves.cc.
References blender::bke::AttributeAccessor::lookup(), blender::bke::Point, and blender::bke::GAttributeReader::varray.
Referenced by populate_curve_props(), populate_curve_props_for_bezier(), and populate_curve_props_for_nurbs().
|
static |
Definition at line 425 of file usd_writer_material.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), usdtokens::clearcoat(), usdtokens::clearcoatRoughness(), usdtokens::diffuse_color(), usdtokens::emissive_color(), usdtokens::ior(), usdtokens::metallic(), usdtokens::normal(), usdtokens::opacity(), usdtokens::roughness(), and usdtokens::specular().
Referenced by create_usd_preview_surface_material(), and token_for_input().
|
static |
Definition at line 94 of file usd_capi_export.cc.
References BLI_assert, RPT_ERROR, and WM_reportf().
Referenced by export_params_valid().
|
static |
Definition at line 200 of file usd_capi_export.cc.
References BKE_id_free(), BKE_image_get_size(), BKE_image_load(), BKE_image_save(), BKE_image_save_options_free(), BKE_image_save_options_init(), BKE_image_scale(), BLI_filelist_dir_contents(), BLI_filelist_free(), BLI_is_dir(), BLI_path_append(), BLI_path_slash_ensure(), ImageSaveOptions::bmain, CLOG_ERROR, CLOG_INFO, CLOG_WARN, FILE_MAX, float, LOG, direntry::path, STRNCPY, USD_TEXTURE_SIZE_CUSTOM, and USD_TEXTURE_SIZE_KEEP.
Referenced by perform_usdz_conversion().
|
static |
Definition at line 19 of file usd_mesh_utils.cc.
References CLOG_WARN, blender::io::usd::detail::convert_value(), blender::bke::Corner, blender::bke::SpanAttributeWriter< T >::finish(), get_primvar_array(), LOG, blender::bke::SpanAttributeWriter< T >::span, and blender::IndexRange::start().
Referenced by read_generic_mesh_primvar().
| void blender::io::usd::read_generic_mesh_primvar | ( | Mesh * | mesh, |
| const pxr::UsdGeomPrimvar & | primvar, | ||
| const double | motionSampleTime, | ||
| const bool | is_left_handed ) |
Definition at line 82 of file usd_mesh_utils.cc.
References CLOG_WARN, convert_usd_type_to_blender(), convert_usd_varying_to_blender(), copy_primvar_to_blender_attribute(), usdtokens::displayColor(), ELEM, blender::bke::Face, faces, LOG, and read_face_display_color().
| void blender::io::usd::register_hook_converters | ( | ) |
Ensure classes and type converters necessary for invoking import and export hooks are registered.
Definition at line 137 of file usd_hook.cc.
References blender::io::usd::USDSceneExportContext::get_depsgraph(), blender::io::usd::USDMaterialExportContext::get_stage(), blender::io::usd::USDSceneExportContext::get_stage(), blender::io::usd::USDSceneImportContext::get_stage(), and hook_list().
Referenced by export_to_stage(), and import_endjob().
| void blender::io::usd::remap_blend_shape_anim | ( | pxr::UsdStageRefPtr | stage, |
| const pxr::SdfPath & | skel_path, | ||
| const pxr::SdfPathSet & | mesh_paths ) |
When multiple meshes with blend shape animations are bound to one skeleton, USD implementations typically expect these animations to be combined in a single animation on the skeleton. This function creates an animation prim as a child of the skeleton and merges the blend shape time samples from multiple meshes in a single attribute on the animation. Merging the weight samples requires handling blend shape name collisions by generating unique names for the combined result.
| stage | The stage |
| skel_path | Path to the skeleton |
| mesh_paths | Paths to one or more mesh prims bound to the skeleton |
Definition at line 303 of file usd_blend_shape_utils.cc.
References usdtokens::Anim(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), CLOG_WARN, blender::Vector< T, InlineBufferCapacity, Allocator >::first(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::is_empty(), blender::Vector< T, InlineBufferCapacity, Allocator >::last(), LOG, stage, and TempBlendShapeWeightsPrimvarName.
Referenced by shape_key_export_chaser().
|
static |
Definition at line 191 of file usd_capi_export.cc.
References blender::timeit::print_duration().
Referenced by export_endjob(), and import_endjob().
|
static |
Definition at line 186 of file usd_capi_import.cc.
References CacheFile::filepath, and blender::timeit::print_duration().
|
static |
Definition at line 120 of file usd_reader_utils.cc.
References IDPropertyTemplate::i, IDP_AddToGroup(), IDP_BOOLEAN, and IDP_New().
Referenced by set_id_props_from_prim().
|
static |
Definition at line 146 of file usd_reader_utils.cc.
References IDPropertyTemplate::d, IDP_AddToGroup(), IDP_DOUBLE, and IDP_New().
Referenced by set_id_props_from_prim().
|
static |
Definition at line 133 of file usd_reader_utils.cc.
References IDPropertyTemplate::f, IDP_AddToGroup(), IDP_FLOAT, and IDP_New().
Referenced by set_id_props_from_prim().
| void blender::io::usd::set_id_props_from_prim | ( | ID * | id, |
| const pxr::UsdPrim & | prim, | ||
| const eUSDAttrImportMode | attr_import_mode, | ||
| const pxr::UsdTimeCode | time_code ) |
Definition at line 159 of file usd_reader_utils.cc.
References IDP_EnsureProperties(), set_bool_prop(), set_double_prop(), set_float_prop(), set_int_prop(), set_string_prop(), and USD_ATTR_IMPORT_ALL.
Referenced by blender::io::usd::USDMaterialReader::add_material(), and blender::io::usd::USDPrimReader::set_props().
|
static |
Set the instance collection on the given instance reader. The collection is assigned from the given map based on the prototype prim path.
Definition at line 90 of file usd_reader_stage.cc.
References CLOG_WARN, LOG, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_default(), blender::io::usd::USDPrimReader::prim_path(), blender::io::usd::USDInstanceReader::proto_path(), and blender::io::usd::USDInstanceReader::set_instance_collection().
Referenced by blender::io::usd::USDStageReader::create_proto_collections().
|
static |
Definition at line 107 of file usd_reader_utils.cc.
References IDPropertyTemplate::i, IDP_AddToGroup(), IDP_INT, and IDP_New().
Referenced by set_id_props_from_prim().
|
static |
Definition at line 632 of file usd_capi_export.cc.
References BLI_path_extension_check_n(), create_temp_path_for_usdz_export(), STRNCPY, blender::io::usd::ExportJobData::unarchived_filepath, and blender::io::usd::ExportJobData::usdz_filepath.
Referenced by USD_export().
|
static |
Definition at line 27 of file usd_writer_light.cc.
Referenced by blender::io::usd::USDLightWriter::do_write().
| void blender::io::usd::set_normal_texture_range | ( | pxr::UsdShadeShader & | usd_shader, |
| const InputSpec & | input_spec ) |
Definition at line 367 of file usd_writer_material.cc.
References usdtokens::bias(), blender::io::usd::InputSpec::input_name, usdtokens::normal(), usdtokens::raw(), usdtokens::scale(), usdtokens::sourceColorSpace(), and usdtokens::uv_texture().
Referenced by create_usd_preview_surface_material().
|
static |
Definition at line 90 of file usd_reader_utils.cc.
References IDP_AddToGroup(), IDP_New(), IDP_STRING, IDP_STRING_SUB_UTF8, IDPropertyTemplate::len, IDPropertyTemplate::str, IDPropertyTemplate::string, and IDPropertyTemplate::subtype.
Referenced by set_id_props_from_prim().
| void blender::io::usd::shape_key_export_chaser | ( | pxr::UsdStageRefPtr | stage, |
| const ObjExportMap & | shape_key_mesh_export_map ) |
Complete the export process for shape keys.
| stage | The stage |
| shape_key_export_map | Map mesh objects with shape-key to USD meshes with blend shape targets |
Definition at line 1189 of file usd_skel_convert.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), CLOG_WARN, ensure_blend_shape_skeleton(), Object::id, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::is_empty(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::items(), LOG, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_ptr(), ID::name, remap_blend_shape_anim(), stage, and TempBlendShapeWeightsPrimvarName.
Referenced by skel_export_chaser().
| bool blender::io::usd::should_import_asset | ( | const std::string & | path | ) |
Return true if the asset at the given path is a candidate for importing with the USD asset resolver. The following heuristics are currently applied for this test:
TODO(makowalski): the test currently requires a file-system stat. Consider possible ways around this, e.g., by determining if the path is a supported URI.
| path | input file path |
Definition at line 383 of file usd_asset_utils.cc.
References asset_exists(), BLI_is_file(), BLI_path_is_rel(), is_udim_path(), and parent_dir_exists_on_file_system().
Referenced by load_image().
| void blender::io::usd::skel_export_chaser | ( | pxr::UsdStageRefPtr | stage, |
| const ObjExportMap & | armature_export_map, | ||
| const ObjExportMap & | skinned_mesh_export_map, | ||
| const ObjExportMap & | shape_key_mesh_export_map, | ||
| const Depsgraph * | depsgraph ) |
This function is called after the USD writers are invoked, to complete the UsdSkel export process, for example, to bind skinned meshes to skeletons or to set blend shape animation data.
| stage | The stage |
| armature_export_map | Map armature objects to USD skeletons |
| skinned_mesh_export_map | Map mesh objects to USD skinned meshes |
| shape_key_export_map | Map mesh objects with shape-key to USD meshes with blend shape targets |
| depsgraph | The dependency graph in which objects were evaluated |
Definition at line 1129 of file usd_skel_convert.cc.
References depsgraph, shape_key_export_chaser(), skinned_mesh_export_chaser(), and stage.
Referenced by blender::io::usd::USDHierarchyIterator::process_usd_skel().
| void blender::io::usd::skinned_mesh_export_chaser | ( | pxr::UsdStageRefPtr | stage, |
| const ObjExportMap & | armature_export_map, | ||
| const ObjExportMap & | skinned_mesh_export_map, | ||
| pxr::UsdGeomXformCache & | xf_cache, | ||
| const Depsgraph * | depsgraph ) |
Complete the export process for skinned meshes.
| stage | The stage |
| armature_export_map | Map armature objects to USD skeleton paths |
| skinned_mesh_export_map | Map mesh objects to USD skinned meshes |
| xf_cache | Cache to speed up USD prim transform computations |
| depsgraph | The dependency graph in which objects were evaluated |
Definition at line 1144 of file usd_skel_convert.cc.
References CLOG_WARN, depsgraph, get_armature_modifier_obj(), Object::id, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::items(), LOG, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_ptr(), ID::name, and stage.
Referenced by skel_export_chaser().
|
static |
The following is copied from _SplitUdimPattern() in USD library source file materialParamsUtils.cpp. Split a UDIM file path such as /someDir/myFile.<UDIM>.exr into a prefix /someDir/myFile. and suffix .exr.
Definition at line 45 of file usd_asset_utils.cc.
References patterns, pos, UDIM_PATTERN, and UDIM_PATTERN2.
Referenced by copy_udim_asset_to_directory().
|
static |
Definition at line 63 of file usd_capi_import.cc.
Referenced by CacheReader_open_usd_object(), and USD_free_handle().
| const char * blender::io::usd::temp_textures_dir | ( | ) |
Returns path to temporary folder for saving imported textures prior to packing. CAUTION: this directory is recursively deleted after material import.
Definition at line 416 of file usd_asset_utils.cc.
References BKE_tempdir_session, BLI_path_join, FILE_MAXDIR, SEP_STR, and temp_dir.
Referenced by load_image(), and blender::io::usd::USDMaterialReader::load_tex_image().
| pxr::TfToken blender::io::usd::TempBlendShapeWeightsPrimvarName | ( | "temp:weights" | , |
| pxr::TfToken::Immortal | ) |
| blender::io::usd::TEST | ( | utilities | , |
| make_safe_name | ) |
Definition at line 317 of file usd_export_test.cc.
References make_safe_name().
| blender::io::usd::TEST_F | ( | UsdCurvesTest | , |
| usd_export_curves | ) |
Definition at line 101 of file usd_curves_test.cc.
References BLI_listbase_count(), blender::StringRefNull::c_str(), check_bezier_curve(), check_catmullRom_curve(), check_nurbs_circle(), check_nurbs_curve(), EXPECT_EQ(), output_filename, params, stage, usd_curves_test_filename, and USD_export().
| blender::io::usd::TEST_F | ( | UsdExportTest | , |
| usd_export_material | ) |
Definition at line 259 of file usd_export_test.cc.
References BKE_libblock_find_name(), BLI_listbase_count(), blender::StringRefNull::c_str(), EXPECT_EQ(), find_node_for_type_in_graph(), ID_MA, materials_filename, bNode::name, output_filename, params, stage, bNode::storage, and USD_export().
| blender::io::usd::TEST_F | ( | UsdExportTest | , |
| usd_export_rain_mesh | ) |
Definition at line 202 of file usd_export_test.cc.
References BLI_listbase_count(), blender::StringRefNull::c_str(), EXPECT_EQ(), LISTBASE_FOREACH, output_filename, params, simple_scene_filename, stage, and USD_export().
| blender::io::usd::TEST_F | ( | USDImagingTest | , |
| CapsuleAdapterTest | ) |
Definition at line 14 of file usd_imaging_test.cc.
References stage.
| blender::io::usd::TEST_F | ( | USDStageCreationTest | , |
| JSONFileLoadingTest | ) |
Definition at line 20 of file usd_stage_creation_test.cc.
| blender::io::usd::TEST_F | ( | UsdUsdzExportTest | , |
| usdz_export | ) |
Definition at line 78 of file usd_usdz_export_test.cc.
References BLI_current_working_dir(), BLI_listbase_count(), FILE_MAX, output_filepath, params, stage, STREQ, USD_export(), and usdz_export_test_filename.
|
inlinestatic |
Definition at line 30 of file usd_reader_curve.cc.
Referenced by add_bezier_control_point().
| pxr::TfToken blender::io::usd::token_for_input | ( | const char * | input_name | ) |
Returns a USDPreviewSurface token name for a given Blender shader Socket name, or an empty TfToken if the input name is not found in the map.
Definition at line 1127 of file usd_writer_material.cc.
References blender::io::usd::InputSpec::input_name, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_ptr(), and preview_surface_input_map().
Referenced by blender::io::usd::UsdExportTest::compare_blender_node_to_usd_prim().
|
static |
Definition at line 770 of file usd_writer_material.cc.
References bNode::inputs, LISTBASE_FOREACH, traverse_channel(), and bNode::type.
Referenced by create_usd_preview_surface_material(), create_uv_input(), and traverse_channel().
| void blender::io::usd::USD_CacheReader_free | ( | CacheReader * | reader | ) |
Definition at line 654 of file usd_capi_import.cc.
References blender::io::usd::USDPrimReader::decref(), and blender::io::usd::USDPrimReader::refcount().
Referenced by BKE_cachefile_reader_free(), cachefile_handle_free(), and CacheReader_open_usd_object().
| CacheArchiveHandle * blender::io::usd::USD_create_handle | ( | Main * | , |
| const char * | filepath, | ||
| ListBase * | object_paths ) |
Definition at line 664 of file usd_capi_import.cc.
References convert_to_z_up(), find_prefix_to_skip(), gather_objects_paths(), handle_from_stage_reader(), params, and stage.
Referenced by BKE_cachefile_eval().
| bool blender::io::usd::USD_export | ( | const bContext * | C, |
| const char * | filepath, | ||
| const USDExportParams * | params, | ||
| bool | as_background_job, | ||
| ReportList * | reports ) |
The USD_export takes a as_background_job parameter, and returns a boolean.
When as_background_job=true, returns false immediately after scheduling a background job.
When as_background_job=false, performs the export synchronously, and returns true when the export was ok, and false if there were any errors.
Definition at line 643 of file usd_capi_export.cc.
References BKE_libblock_find_name(), BKE_reportf(), blender::io::usd::ExportJobData::bmain, blender::io::usd::USDExportParams::collection, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_manager(), CTX_wm_window(), DEG_graph_build_for_all_objects(), DEG_graph_build_from_collection(), DEG_graph_build_from_view_layer(), DEG_graph_new(), blender::io::usd::ExportJobData::depsgraph, export_endjob(), blender::io::usd::ExportJobData::export_ok, export_params_valid(), export_startjob(), ID_GR, MEM_freeN(), MEM_mallocN, NC_SCENE, ND_FRAME, blender::io::usd::ExportJobData::params, params, wmJobWorkerStatus::reports, RPT_ERROR, blender::io::usd::ExportJobData::scene, scene, set_job_filepath(), blender::io::usd::USDExportParams::visible_objects_only, blender::io::usd::ExportJobData::wm, WM_JOB_PROGRESS, WM_JOB_TYPE_USD_EXPORT, WM_jobs_callbacks(), WM_jobs_customdata_set(), WM_jobs_get(), WM_jobs_start(), WM_jobs_timer(), and blender::io::usd::USDExportParams::worker_status.
| USDHook * blender::io::usd::USD_find_hook_name | ( | const char | idname[] | ) |
Definition at line 59 of file usd_hook.cc.
References hook_list(), and STREQ.
Referenced by USD_register_hook().
| void blender::io::usd::USD_free_handle | ( | CacheArchiveHandle * | handle | ) |
Definition at line 688 of file usd_capi_import.cc.
References stage_reader_from_handle().
Referenced by cachefile_handle_free().
| void blender::io::usd::USD_get_transform | ( | CacheReader * | reader, |
| float | r_mat_world[4][4], | ||
| float | time, | ||
| float | scale ) |
Definition at line 694 of file usd_capi_import.cc.
References BKE_object_get_parent_matrix(), mul_m4_m4m4(), blender::io::usd::USDPrimReader::object(), and blender::io::usd::USDXformReader::read_matrix().
Referenced by transformcache_evaluate().
| int blender::io::usd::USD_get_version | ( | ) |
Definition at line 723 of file usd_capi_export.cc.
Referenced by make_usd_info().
| bool blender::io::usd::USD_import | ( | const bContext * | C, |
| const char * | filepath, | ||
| const USDImportParams * | params, | ||
| bool | as_background_job, | ||
| ReportList * | reports ) |
Definition at line 497 of file usd_capi_import.cc.
References blender::io::usd::ImportJobData::archive, blender::io::usd::ImportJobData::bmain, blender::io::usd::ImportJobData::C, C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_manager(), CTX_wm_window(), blender::io::usd::ImportJobData::error_code, blender::io::usd::ImportJobData::filepath, G, import_endjob(), import_freejob(), blender::io::usd::ImportJobData::import_ok, import_startjob(), blender::io::usd::ImportJobData::is_background_job, blender::io::usd::ImportSettings::is_sequence, NC_SCENE, blender::io::usd::ImportJobData::params, params, wmJobWorkerStatus::reports, blender::io::usd::ImportSettings::scale, blender::io::usd::ImportJobData::scene, blender::io::usd::ImportSettings::sequence_len, blender::io::usd::ImportSettings::sequence_offset, blender::io::usd::ImportJobData::settings, STRNCPY, USD_NO_ERROR, blender::io::usd::ImportSettings::validate_meshes, blender::io::usd::ImportJobData::view_layer, blender::io::usd::ImportJobData::was_canceled, blender::io::usd::ImportJobData::wm, WM_JOB_PROGRESS, WM_JOB_TYPE_USD_IMPORT, WM_jobs_callbacks(), WM_jobs_customdata_set(), WM_jobs_get(), WM_jobs_start(), and WM_jobs_timer().
| bool blender::io::usd::USD_mesh_topology_changed | ( | CacheReader * | reader, |
| const Object * | ob, | ||
| const Mesh * | existing_mesh, | ||
| const double | time, | ||
| const char ** | r_err_str ) |
Definition at line 601 of file usd_capi_import.cc.
References get_usd_reader(), and blender::io::usd::USDGeomReader::topology_changed().
| void blender::io::usd::USD_path_abs | ( | char * | path, |
| const char * | basepath, | ||
| bool | for_import ) |
Definition at line 633 of file usd_asset_utils.cc.
References BLI_path_abs(), BLI_path_is_rel(), BLI_strncpy(), FILE_MAX, RPT_ERROR, and WM_reportf().
Referenced by export_packed_texture().
| void blender::io::usd::USD_read_geometry | ( | CacheReader * | reader, |
| const Object * | ob, | ||
| blender::bke::GeometrySet & | geometry_set, | ||
| USDMeshReadParams | params, | ||
| const char ** | r_err_str ) |
Either modifies current_mesh in-place or constructs a new mesh.
Definition at line 586 of file usd_capi_import.cc.
References get_usd_reader(), params, and blender::io::usd::USDGeomReader::read_geometry().
Referenced by modify_geometry_set().
| void blender::io::usd::USD_register_hook | ( | std::unique_ptr< USDHook > | hook | ) |
Definition at line 42 of file usd_hook.cc.
References hook_list(), and USD_find_hook_name().
| void blender::io::usd::USD_unregister_hook | ( | USDHook * | hook | ) |
Remove the given entry from the list of registered hooks and free the allocated memory for the hook instance.
Definition at line 53 of file usd_hook.cc.
References hook_list().
|
static |
Definition at line 20 of file usd_armature_utils.cc.
References Bone::childbase, LISTBASE_FOREACH, and visit_bones().
Referenced by get_armature_bone_names(), init_deform_bones_map(), visit_bones(), and visit_bones().
| void blender::io::usd::visit_bones | ( | const Object * | ob_arm, |
| FunctionRef< void(const Bone *)> | visitor ) |
Recursively invoke the given function on the given armature object's bones. This function is a no-op if the object isn't an armature.
| ob_arm | The armature object |
| visitor | The function to invoke on each bone |
Definition at line 66 of file usd_armature_utils.cc.
References bArmature::bonebase, Object::data, LISTBASE_FOREACH, OB_ARMATURE, Object::type, and visit_bones().
| void blender::io::usd::world_material_to_dome_light | ( | const USDExportParams & | params, |
| const Scene * | scene, | ||
| pxr::UsdStageRefPtr | stage ) |
If the Blender scene has an environment texture, export it as a USD dome light.
Definition at line 274 of file usd_light_convert.cc.
References BLI_copy(), BLI_dir_create_recursive(), BLI_path_append(), BLI_path_append_dir(), BLI_path_join, BLI_path_split_dir_part(), BLI_path_split_file_part(), cache_image_color(), CLOG_WARN, FILE_MAX, blender::Span< T >::first(), get_unique_path(), blender::Span< T >::is_empty(), LOG, M_PI, mul_v3_fl(), blender::bke::node_chain_iterator(), node_search(), params, and stage.
Referenced by export_to_stage().
| bool blender::io::usd::write_to_path | ( | const void * | data, |
| size_t | size, | ||
| const char * | path, | ||
| ReportList * | reports ) |
Invokes the USD asset resolver to write data to the given path.
| data | pointer to data to write |
| size | number of bytes to write |
| path | path of asset to be written |
| reports | the storage for potential warning or error reports (generated using BKE_report API). |
Definition at line 430 of file usd_asset_utils.cc.
References BKE_reportf(), BLI_assert, and RPT_ERROR.
Referenced by export_packed_texture().
| const StringRefNull blender::io::usd::materials_filename = "usd/usd_materials_export.blend" |
Definition at line 46 of file usd_export_test.cc.
Referenced by TEST_F().
| const StringRefNull blender::io::usd::output_filename = "usd/output.usda" |
Definition at line 47 of file usd_curves_test.cc.
Referenced by blender::io::usd::UsdCurvesTest::TearDown(), blender::io::usd::UsdExportTest::TearDown(), TEST_F(), TEST_F(), and TEST_F().
| char blender::io::usd::output_filepath[FILE_MAX] |
Definition at line 29 of file usd_usdz_export_test.cc.
Referenced by blender::io::usd::UsdUsdzExportTest::SetUp(), and TEST_F().
| const StringRefNull blender::io::usd::simple_scene_filename = "usd/usd_simple_scene.blend" |
Definition at line 45 of file usd_export_test.cc.
Referenced by TEST_F().
| char blender::io::usd::temp_dir[FILE_MAX] |
Definition at line 27 of file usd_usdz_export_test.cc.
Referenced by blender::io::usd::UsdUsdzExportTest::SetUp(), blender::io::usd::UsdUsdzExportTest::TearDown(), and temp_textures_dir().
| char blender::io::usd::temp_output_dir[FILE_MAX] |
Definition at line 28 of file usd_usdz_export_test.cc.
Referenced by blender::io::usd::UsdUsdzExportTest::SetUp(), and blender::io::usd::UsdUsdzExportTest::TearDown().
|
extern |
|
constexpr |
Definition at line 37 of file usd_asset_utils.cc.
Referenced by copy_udim_asset_to_directory().
|
constexpr |
Definition at line 29 of file usd_asset_utils.cc.
Referenced by copy_udim_asset_to_directory(), is_udim_path(), and split_udim_pattern().
|
constexpr |
Definition at line 30 of file usd_asset_utils.cc.
Referenced by is_udim_path(), and split_udim_pattern().
|
constexpr |
Definition at line 36 of file usd_asset_utils.cc.
Referenced by copy_udim_asset_to_directory().
| const StringRefNull blender::io::usd::usd_curves_test_filename = "usd/usd_curves_test.blend" |
Definition at line 46 of file usd_curves_test.cc.
Referenced by TEST_F().
| const StringRefNull blender::io::usd::usdz_export_test_filename = "usd/usdz_export_test.blend" |
Definition at line 26 of file usd_usdz_export_test.cc.
Referenced by TEST_F().