MCPcopy Index your code

hub / github.com/Grimrukh/soulstruct-blender / functions

Functions1,257 in github.com/Grimrukh/soulstruct-blender

↓ 327 callersMethoderror
(self, msg: str)
io_soulstruct/soulstruct/blender/utilities/operators.py:67
↓ 208 callersMethodnew
Creates Nodes and Edges child-parents.
io_soulstruct/soulstruct/blender/nav_graph/types.py:84
↓ 176 callersMethodinfo
(self, msg: str)
io_soulstruct/soulstruct/blender/utilities/operators.py:59
↓ 152 callersMethodwarning
(self, msg: str)
io_soulstruct/soulstruct/blender/utilities/operators.py:63
↓ 113 callersMethodsettings
Retrieve and save current Soulstruct plugin general settings.
io_soulstruct/soulstruct/blender/utilities/operators.py:45
↓ 81 callersMethodis_game
Check if any `name_or_game` is the selected `Game`.
io_soulstruct/soulstruct/blender/general/properties.py:353
↓ 76 callersMethodadd
(self, texture: DDSTexture)
io_soulstruct/soulstruct/blender/flver/image/types.py:242
↓ 67 callersMethodlink
(self, node_output: NodeSocket, node_input: NodeSocket)
io_soulstruct/soulstruct/blender/flver/material/shaders/base_node_tree_builder.py:848
↓ 51 callersMethodget_mtd_param
(self, mtd_param_name: str, default=None)
io_soulstruct/soulstruct/blender/flver/material/shaders/base_node_tree_builder.py:845
↓ 41 callersFunction_ensure_node
(ng: bpy.types.NodeTree, bl_idname: str, name: str, loc=(0, 0))
experimental/material_debug/nodes.py:30
↓ 33 callersMethod_draw_collection_operators
(context, layout, name: str, label: str, use_regex=False)
io_soulstruct/soulstruct/blender/misc/gui.py:117
↓ 30 callersFunctionfind_or_create_collection
Find or create Collection `names[-1]`. If it doesn't exist, create it, nested inside the given `names` hierarchy, starting at `root_collection`.
io_soulstruct/soulstruct/blender/utilities/bpy_data.py:238
↓ 30 callersMethodnew
Sets entry subtype appropriately under supertype properties (e.g. `obj.MSB_PART.entry_subtype`).
io_soulstruct/soulstruct/blender/msb/types/base/entry.py:62
↓ 30 callersFunctionto_blender
Default: raise for unsupported types.
io_soulstruct/soulstruct/blender/utilities/conversion.py:125
↓ 26 callersMethodexport_file
Write `file` to `relative_path` in project directory (if given) and optionally also to game directory if `also_export_to_game` is enabled.
io_soulstruct/soulstruct/blender/general/properties.py:583
↓ 25 callersFunction_ensure_math_node
(ng: bpy.types.NodeTree, operation: str, name: str, loc=(0, 0))
experimental/material_debug/nodes.py:40
↓ 23 callersMethodfrom_armature_or_mesh
FLVER models can be parsed from a Mesh obj or its optional Armature parent.
io_soulstruct/soulstruct/blender/flver/models/types/bl_flver/core.py:128
↓ 22 callersMethoddebug
(msg: str)
io_soulstruct/soulstruct/blender/utilities/operators.py:55
↓ 22 callersFunctionto_game
Default: raise for unsupported types.
io_soulstruct/soulstruct/blender/utilities/conversion.py:57
↓ 21 callersFunctionhsv_color
Create an RGBA color tuple from HSV and `alpha` values (all in range [0, 1]).
io_soulstruct/soulstruct/blender/utilities/materials.py:13
↓ 20 callersFunctionnew_shader_math_node
Create a new `ShaderNodeMath` node with the given operation and inputs. Each input can be a constant `float` or `int` (set as default value) or a
io_soulstruct/soulstruct/blender/flver/material/shaders/utilities.py:54
↓ 20 callersFunctionnew_shader_node
Create a new `bpy.types.Node` of the given type.
io_soulstruct/soulstruct/blender/flver/material/shaders/utilities.py:23
↓ 17 callersMethodget_file_path
Get path of arbitrary file relative to this root. At least one `parts` argument must be given, as this is not permitted to return directories
io_soulstruct/soulstruct/blender/general/game_structure.py:38
↓ 16 callersMethodget_import_map_file_path
Get the 'map/{map_stem}' directory path, and optionally further, in the preferred directory. If `smart_map_version_handling` is enabled, this
io_soulstruct/soulstruct/blender/general/properties.py:523
↓ 15 callersMethod_get_mixed_texture_color
Searches the `MatDef` for samplers that match the pattern, and returns a single socket output for it. If there are two or more samplers, it c
io_soulstruct/soulstruct/blender/flver/material/shaders/base_node_tree_builder.py:587
↓ 15 callersMethoddeselect_all
()
io_soulstruct/soulstruct/blender/utilities/operators.py:101
↓ 14 callersMethodget_latest_map_stem_version
Check if `smart_map_version_handling` is enabled and return the latest version of the map stem if so.
io_soulstruct/soulstruct/blender/general/properties.py:481
↓ 13 callersMethodis_obj_type
For FLVER, Blender `obj` could be Mesh or Armature.
io_soulstruct/soulstruct/blender/flver/models/types/bl_flver/core.py:443
↓ 13 callersMethodto_object_mode
(context: bpy.types.Context)
io_soulstruct/soulstruct/blender/utilities/operators.py:91
↓ 11 callersMethoddraw_active_map
(self, context: bpy.types.Context, layout: bpy.types.UILayout = None)
io_soulstruct/soulstruct/blender/bpy_base/panel.py:40
↓ 11 callersFunctionget_dcx_enum_property
Create a Blender `EnumProperty` for selecting DCX compression type. Will default to `default` string, which should be one of the items below. The
io_soulstruct/soulstruct/blender/utilities/operators.py:343
↓ 10 callersMethodfrom_selected_objects
( cls: type[SELF_T], context: bpy.types.Context, sort=True, )
io_soulstruct/soulstruct/blender/base/soulstruct_object.py:320
↓ 10 callersMethodget_game_prop_names
Only get cross-game properties or properties for the active game.
io_soulstruct/soulstruct/blender/bpy_base/property_group.py:44
↓ 10 callersMethodget_import_file_path
Try to get file path relative to project or game directory first, depending on `prefer_import_from_project`, then fall back to the same path r
io_soulstruct/soulstruct/blender/general/properties.py:489
↓ 10 callersFunctionlower_stem
(path_or_entry: Path | BinderEntry)
io_soulstruct/soulstruct/blender/flver/image/image_import_manager.py:36
↓ 10 callersFunctionremove_dupe_suffix
(name)
io_soulstruct/soulstruct/blender/utilities/misc.py:202
↓ 9 callersMethodfrom_armature_or_mesh
MSB Parts can be parsed from a Mesh obj or its optional Armature parent.
io_soulstruct/soulstruct/blender/msb/types/base/parts.py:216
↓ 9 callersMethodget_oldest_map_stem_version
Check if `smart_map_version_handling` is enabled and return the oldest version of the map stem if so.
io_soulstruct/soulstruct/blender/general/properties.py:473
↓ 9 callersFunctionis_path_and_dir
Return True if `path` is a valid path to a directory.
io_soulstruct/soulstruct/blender/utilities/misc.py:176
↓ 9 callersMethodnew_from_soulstruct_obj
Create a fully-represented MSB Part linked to a source model in Blender. Subclasses will override this to set additional Part-specific proper
io_soulstruct/soulstruct/blender/msb/types/base/parts.py:108
↓ 9 callersFunctionnew_mesh_object
( name: str, data: bpy.types.Mesh, soulstruct_type: SoulstructType = SoulstructType.NONE )
io_soulstruct/soulstruct/blender/utilities/bpy_data.py:26
↓ 7 callersMethod_build_primary_shader
Constructs a shader node group by appending the node group with the specified name to the open Blender scene. Then, links the shader
io_soulstruct/soulstruct/blender/flver/material/shaders/base_node_tree_builder.py:459
↓ 7 callersMethod_get_mixed_texture_alpha
Searches the `MatDef` for samplers that match the pattern, and returns a single socket output for it. Only texture alpha is used. If
io_soulstruct/soulstruct/blender/flver/material/shaders/base_node_tree_builder.py:700
↓ 7 callersMethod_normal_tex_to_normal_input
Create a node group that processes input normal map colors (for given game) to Blender normal colors. Blender expects red to be the X compone
io_soulstruct/soulstruct/blender/flver/material/shaders/base_node_tree_builder.py:797
↓ 7 callersFunctionfind_obj
( name: str, object_type: tp.Literal[ObjectType.MESH] = None, soulstruct_type: SoulstructType | No
io_soulstruct/soulstruct/blender/utilities/bpy_data.py:54
↓ 7 callersMethodfrom_active_object
(cls: type[SELF_T], context: bpy.types.Context)
io_soulstruct/soulstruct/blender/base/soulstruct_object.py:300
↓ 7 callersFunctionget_active_part_obj
Retrieve the active object as an MSB Part object, or None if it is not a Part.
io_soulstruct/soulstruct/blender/msb/gui.py:139
↓ 7 callersFunctionget_collection_map_stem
Get the map stem of the collection that the object is in. Supports multiple containing collections as long as only one looks like a map stem.
io_soulstruct/soulstruct/blender/utilities/misc.py:183
↓ 7 callersMethodget_initial_binder
Overload for default `Binder` class type detection.
io_soulstruct/soulstruct/blender/general/properties.py:779
↓ 6 callersFunctioncopy_obj_property_group
Use annotations of `source_obj.props_name` to copy properties to `dest_obj.props_name`.
io_soulstruct/soulstruct/blender/utilities/bpy_data.py:203
↓ 6 callersMethoddraw
(self, context)
io_soulstruct/soulstruct/blender/nav_graph/gui.py:40
↓ 6 callersMethodfind_flver_textures
Register known game Binders/TPFs to be opened as needed. `flver_source_path` is the path to the Binder file containing the FLVER, or loose FL
io_soulstruct/soulstruct/blender/flver/image/image_import_manager.py:91
↓ 6 callersFunctionget_active_flver_or_part_armature
Get Armature, Mesh, model name, and `is_part` of active FLVER or MSB Part (Character or Object only).
io_soulstruct/soulstruct/blender/animation/utilities.py:155
↓ 6 callersMethodget_dir_path
Get path of arbitrary directory relative to this root. Does NOT check if the directory actually exists. If no parts are given, `root` will be
io_soulstruct/soulstruct/blender/general/game_structure.py:57
↓ 6 callersMethodget_dummies
Find all FLVER Dummy (empty children of root object with expected name). If `operator` is provided, warnings will be logged for any Empty chi
io_soulstruct/soulstruct/blender/flver/models/types/bl_flver/core.py:149
↓ 6 callersMethodget_import_map_dir_path
Get the 'map/{map_stem}' directory path, and optionally further, in the preferred directory. Directory must exist, or a `NotADirectoryError`
io_soulstruct/soulstruct/blender/general/properties.py:541
↓ 6 callersFunctionget_model_name
In this add-on, model names (FLVER, Collision, Navmesh) are always the first part of an object name, before the first space and/or period (so we d
io_soulstruct/soulstruct/blender/utilities/misc.py:231
↓ 6 callersMethodimport_nvmhkt
Read a NVMHKT into a Blender mesh object.
io_soulstruct/soulstruct/blender/navmesh/nvmhkt/model_import/core.py:31
↓ 6 callersMethodis_game_ds1
Checks if current game is either version of Dark Souls 1.
io_soulstruct/soulstruct/blender/general/properties.py:361
↓ 6 callersMethodis_obj_type
For MSB Part, Blender `obj` could be Mesh or Armature.
io_soulstruct/soulstruct/blender/msb/types/base/parts.py:224
↓ 6 callersMethodparse_msb_part_obj
Parse a Blender object into an MSB Part Mesh and (optional) Armature object.
io_soulstruct/soulstruct/blender/msb/types/base/parts.py:233
↓ 5 callersMethod_get_mixed_texture_normals
Searches the `MatDef` for samplers that match the pattern, and returns a single socket output for it. Texture colors are processed as normals
io_soulstruct/soulstruct/blender/flver/material/shaders/base_node_tree_builder.py:629
↓ 5 callersMethod_new_tex_scale_node
(self, scale: Vector2, node_y: float)
io_soulstruct/soulstruct/blender/flver/material/shaders/base_node_tree_builder.py:885
↓ 5 callersFunctioncreate_region_scale_driver
Create a driver that uses MSB_REGION `prop_axes` (e.g. 'xxz') to drive the matching index of `obj.scale`.
io_soulstruct/soulstruct/blender/msb/utilities.py:1443
↓ 5 callersMethoddraw_detected_map
Draw a label showing the detected map. If `use_latest_version` is True, the latest version of the detected map will be shown IF smart map ver
io_soulstruct/soulstruct/blender/bpy_base/panel.py:45
↓ 5 callersMethodduplicate
Duplicate Navmesh model to a new object. Does not rename (will just add duplicate suffix).
io_soulstruct/soulstruct/blender/navmesh/nvm/types.py:219
↓ 5 callersFunctionget_centroid
(_face: BMFace)
io_soulstruct/soulstruct/blender/nav_graph/utilities.py:52
↓ 5 callersMethodget_edges
(self)
io_soulstruct/soulstruct/blender/nav_graph/types.py:74
↓ 5 callersMethodget_import_msb_path
Get the `map_stem` MSB path in the preferred `map/MapStudio` directory. MSB file must exist, or a `FileNotFoundError` will be raised.
io_soulstruct/soulstruct/blender/general/properties.py:551
↓ 5 callersMethodget_msb_subcollection
(cls, msb_collection: bpy.types.Collection, msb_stem: str)
io_soulstruct/soulstruct/blender/msb/types/base/parts.py:153
↓ 5 callersFunctionis_path_and_file
Return True if `path` is a valid path to a file.
io_soulstruct/soulstruct/blender/utilities/misc.py:169
↓ 5 callersFunctionprimitive_cube
Create a cube mesh with side length 1, with its base at the origin.
io_soulstruct/soulstruct/blender/msb/utilities.py:1374
↓ 5 callersMethodregister_lazy_flver_map_textures
Check all FLVER texture stems for any 'mAA_' prefixes and register texures in that map area dir. Required for FLVERs that use 'lazy' texture
io_soulstruct/soulstruct/blender/flver/image/image_import_manager.py:241
↓ 5 callersMethodrename
Rename object, data, and event entity children.
io_soulstruct/soulstruct/blender/navmesh/nvm/types.py:238
↓ 5 callersFunctionset_face_material
Set face materials according to their `NVMTriangle` flags. Searches for existing materials on the mesh with names like "Navmesh Flag <flag_name>"
io_soulstruct/soulstruct/blender/navmesh/nvm/utilities.py:50
↓ 5 callersMethodset_face_materials
(self, nvm: NVM)
io_soulstruct/soulstruct/blender/navmesh/nvm/types.py:191
↓ 5 callersMethodto_hkx_pair
Create 'hi' and/or 'lo' HKX files by splitting given `hkx_model` into submeshes by material, or (if empty), directly from child submesh Mesh o
io_soulstruct/soulstruct/blender/collision/types.py:125
↓ 5 callersMethodto_soulstruct_obj
( self, operator: LoggingOperator, context: bpy.types.Context, texture_collect
io_soulstruct/soulstruct/blender/flver/models/types/bl_flver/core.py:398
↓ 4 callersFunction_get_remapped_groups
(remap_dict: dict[int, int], bit_set)
scripts/remap_groups.py:15
↓ 4 callersMethod_initialize_node_tree
(self)
io_soulstruct/soulstruct/blender/flver/material/shaders/base_node_tree_builder.py:482
↓ 4 callersMethod_mix_shader_nodes
( self, input_1: NodeSocket, input_2: NodeSocket, mix_fac_input: NodeSocket |
io_soulstruct/soulstruct/blender/flver/material/shaders/base_node_tree_builder.py:546
↓ 4 callersMethod_new_tex_image_node
( self, name: str, image: bpy.types.Image | None, label: str = None, hide=False )
io_soulstruct/soulstruct/blender/flver/material/shaders/base_node_tree_builder.py:914
↓ 4 callersFunctionbit_set_prop
( layout: bpy.types.UILayout, props: bpy.types.PropertyGroup, prefix: str, label: str )
io_soulstruct/soulstruct/blender/msb/gui.py:155
↓ 4 callersMethodcreate_non_dcx_file
Create a non-DCX version of file at `dcx_path`.
io_soulstruct/soulstruct/blender/general/properties.py:944
↓ 4 callersMethoddeep_rename
(self, new_name: str, old_name="")
io_soulstruct/soulstruct/blender/flver/models/types/bl_flver/core.py:172
↓ 4 callersMethodduplicate_armature
Duplicate just the `armature` of this FLVER model. Mostly used internally during full duplication. If `child_mesh_obj` is given (e.g. one jus
io_soulstruct/soulstruct/blender/flver/models/types/bl_flver/core.py:189
↓ 4 callersMethodformat_name
( model_name: str | None, index: int | None, reference_id: int, suffix: str |
io_soulstruct/soulstruct/blender/flver/models/types/bl_flver_dummy.py:257
↓ 4 callersMethodfrom_armature_animation_data
Load from current animation data of given `armature`.
io_soulstruct/soulstruct/blender/animation/types.py:165
↓ 4 callersFunctionget_active_event_obj
Retrieve the active object as an MSB Event object, or None if it is not a Event.
io_soulstruct/soulstruct/blender/msb/gui.py:147
↓ 4 callersMethodget_binder_and_flver
Export FLVER from Blender object and return Binder, FLVER, and texture collection. NOTE: Returned Binder does not load FLVER entries automati
io_soulstruct/soulstruct/blender/flver/models/operators/export_operators.py:345
↓ 4 callersMethodget_game_image_cache_directory
(self, context: bpy.types.Context)
io_soulstruct/soulstruct/blender/flver/material/properties.py:406
↓ 4 callersMethodget_globs
Get glob patterns with and/or without '.dcx' extension.
io_soulstruct/soulstruct/blender/utilities/misc.py:126
↓ 4 callersMethodget_import_dir_path
Try to get directory path relative to project or game directory first, depending on `prefer_import_from_project`, then fall back to the same p
io_soulstruct/soulstruct/blender/general/properties.py:503
↓ 4 callersMethodget_navmesh_triangles
(self, navmesh: bpy.types.Object)
io_soulstruct/soulstruct/blender/nav_graph/types.py:417
↓ 4 callersMethodget_nice_name
(self)
io_soulstruct/soulstruct/blender/msb/properties/parts.py:55
↓ 4 callersMethodget_nodes
(self)
io_soulstruct/soulstruct/blender/nav_graph/types.py:71
↓ 4 callersMethodimport_nvmhktbnd_entry
( self, context, collection: bpy.types.Collection, nvmhktbnd: Binder,
io_soulstruct/soulstruct/blender/navmesh/nvmhkt/model_import/operators.py:355
↓ 4 callersMethodis_subtype
(self, subtype: BlenderMSBPartSubtype | str)
io_soulstruct/soulstruct/blender/msb/properties/parts.py:246
↓ 4 callersFunctionlane
(mul, name_prefix, y)
experimental/material_debug/nodes.py:137
↓ 4 callersMethodload_binder_compendium
Try to find compendium HKX. Div Binders may have multiple, but they should be identical, so we use first.
io_soulstruct/soulstruct/blender/animation/import_operators.py:60
next →1–100 of 1,257, ranked by callers