27namespace io::alembic {
29using Alembic::Abc::OObject;
30using Alembic::AbcGeom::OXform;
31using Alembic::AbcGeom::OXformSchema;
32using Alembic::AbcGeom::XformSample;
44 abc_xform_schema_ = abc_xform_.getSchema();
54 const Object *
object = context.object;
55 return object->id.properties;
61 float4x4 parent_relative_matrix = context.parent_matrix_inv_world * context.matrix_world;
67 bool is_root_object = context.export_parent ==
nullptr;
68 if (!is_root_object && context.export_parent->type ==
OB_CAMERA) {
70 parent_relative_matrix = rot_mat * parent_relative_matrix;
76 parent_relative_matrix = parent_relative_matrix * rot_mat;
85 parent_relative_matrix[3][3] /=
89 XformSample xform_sample;
91 xform_sample.setInheritsXforms(
true);
92 abc_xform_schema_.set(xform_sample);
104 if (context.duplicator !=
nullptr) {
General operations, lookup, etc. for blender objects.
#define CLOG_DEBUG(clg_ref,...)
Object is a sort of wrapper for general info.
static bool check_has_physics(const HierarchyContext &context)
void write_visibility(const HierarchyContext &context)
ABCAbstractWriter(const ABCWriterConstructorArgs &args)
Alembic::Abc::OCompoundProperty abc_schema_prop_for_custom_props(T abc_schema)
uint32_t timesample_index_
const ABCWriterConstructorArgs args_
uint32_t time_sampling_index_transforms() const
float3x3 scale(float3x3 mat, float2 scale)
void copy_m44_axis_swap(float dst_mat[4][4], float src_mat[4][4], AbcAxisSwapMode mode)
Imath::M44d convert_matrix_datatype(const float mat[4][4])
MatBase< T, NumCol, NumRow > scale(const MatBase< T, NumCol, NumRow > &mat, const VectorT &scale)
EulerXYZBase< float > EulerXYZ
MatT from_rotation(const RotationT &rotation)
bool BKE_object_moves_in_time(const Object *object, bool recurse_parent)
MatBase< float, 4, 4 > float4x4
VecBase< float, 4 > float4
const c_style_mat & ptr() const
Alembic::Abc::OObject abc_parent
const AlembicExportParams * export_params