Blender V5.3
world_space_copy.cc File Reference
#include "BLI_bounds.hh"
#include "BLI_listbase.hh"
#include "BLI_math_matrix_c.hh"
#include "BLI_math_rotation_c.hh"
#include "BLI_path_utils.hh"
#include "BLI_string.hh"
#include "BKE_action.hh"
#include "BKE_appdir.hh"
#include "BKE_armature.hh"
#include "BKE_blender_copybuffer.hh"
#include "BKE_blendfile.hh"
#include "BKE_context.hh"
#include "BKE_fcurve.hh"
#include "BKE_scene.hh"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_build.hh"
#include "DEG_depsgraph_query.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "ED_anim_transformable.hh"
#include "ED_screen.hh"
#include "ANIM_action.hh"
#include "ANIM_animdata.hh"
#include "ANIM_rna.hh"
#include "anim_intern.hh"

Go to the source code of this file.

Classes

struct  blender::ed::animrig::TransformableRelations
struct  blender::ed::animrig::DegComponentIdentifier
struct  blender::ed::animrig::PasteFCurve
struct  blender::ed::animrig::TransformFCurves

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::ed
namespace  blender::ed::animrig

Typedefs

using blender::ed::animrig::ClipboardData = Map<StringRefNull, Array<FCurve *>>
using blender::ed::animrig::PasteMap = Map<AnimTransformable *, StringRefNull>

Enumerations

enum class  blender::ed::animrig::AnimationPasteOffset { blender::ed::animrig::NONE , blender::ed::animrig::CURRENT_FRAME }

Functions

static void blender::ed::animrig::matrix_to_fcurves (const float4x4 &matrix, Span< FCurve * > fcurves, const int frame, const int key_index)
static float4x4 blender::ed::animrig::fcurves_to_matrix (const Span< const FCurve * > fcurves, const int key_index)
static Vector< ID * > blender::ed::animrig::get_unique_ids (const Span< AnimTransformable * > transformables)
static Vector< ID * > blender::ed::animrig::get_unique_ids (const Span< AnimTransformable > transformables)
static DegComponentIdentifier blender::ed::animrig::transformable_to_deg_identifier (const AnimTransformable &transformable)
static Array< TransformableRelations > blender::ed::animrig::build_transformable_relations (const Depsgraph *depsgraph, const MutableSpan< AnimTransformable * > transformables)
static Vector< AnimTransformable * > blender::ed::animrig::depsgraph_sorted_transformables (const Depsgraph *depsgraph, const MutableSpan< AnimTransformable * > transformables)
static void blender::ed::animrig::ensure_baked_fcurves (Main &bmain, const AnimTransformable &transformable, MutableSpan< PasteFCurve > fcus, blender::animrig::Channelbag &channelbag, const StringRefNull rna_path, const Bounds< int > range)
static bool blender::ed::animrig::is_fcurve_flat (FCurve &fcurve)
static void blender::ed::animrig::clean_baked_fcurves (AnimTransformable &transformable, AnimTransformable::PropertyType property_type, MutableSpan< PasteFCurve > fcurves, blender::animrig::Channelbag &channelbag)
static void blender::ed::animrig::recalculate_handles (MutableSpan< PasteFCurve > fcurves)
static Rotation blender::ed::animrig::set_keys_to_transform (TransformFCurves &t_fcus, const float4x4 &matrix, const Rotation &reference_rotation, const int paste_index)
Main Functions
static void blender::ed::animrig::copy_world_space (Main &bmain, Scene &scene, ViewLayer &view_layer, ReportList &reports, const Span< AnimTransformable > transformables, const Bounds< int > range)
static PasteMap blender::ed::animrig::generate_paste_mapping (const MutableSpan< AnimTransformable > transformables, const ClipboardData &clipboard_data)
static Array< TransformFCurves > blender::ed::animrig::build_fcurves_for_paste (Main &bmain, const Span< AnimTransformable * > transformables, const Bounds< int > range)
static bAction * blender::ed::animrig::read_action_from_clipboard (Main &clipboard_bmain, ReportList &reports)
static void blender::ed::animrig::paste_world_space (Main &bmain, Scene &scene, ViewLayer &view_layer, ReportList &reports, bAction &clipboard_dna_action, const MutableSpan< AnimTransformable > transformables, const AnimationPasteOffset offset)
World Space Copy Paste
void blender::ed::animrig::ANIM_OT_world_space_copy (wmOperatorType *ot)
void blender::ed::animrig::ANIM_OT_world_space_paste (wmOperatorType *ot)

Variables

constexpr const char * blender::ed::animrig::clipboard_name = "world_space_buffer.blend"

Operators

enum class  blender::ed::animrig::CopyRange : uint8_t { blender::ed::animrig::CUSTOM , blender::ed::animrig::PLAYBACK_RANGE }
const EnumPropertyItem blender::ed::animrig::rna_enum_copy_range_items []
const EnumPropertyItem blender::ed::animrig::rna_enum_animation_paste_offset_items []
static wmOperatorStatus blender::ed::animrig::world_space_copy_exec (bContext *C, wmOperator *op)
static bool blender::ed::animrig::world_space_copy_poll (bContext *C)
static bool blender::ed::animrig::has_constraints (const Span< AnimTransformable > transformables)
static wmOperatorStatus blender::ed::animrig::world_space_paste_exec (bContext *C, wmOperator *op)
static bool blender::ed::animrig::world_space_paste_poll (bContext *C)