16 using Alembic::Abc::ISampleSelector;
27 Alembic::AbcGeom::IXform
xform(
object, Alembic::AbcGeom::kWrapExisting);
28 m_schema =
xform.getSchema();
35 return m_schema.valid();
39 const Alembic::AbcCoreAbstract::ObjectHeader &alembic_header,
41 const char **err_str)
const
43 if (!Alembic::AbcGeom::IXform::matches(alembic_header)) {
45 "Object type mismatch, Alembic object path pointed to XForm when importing, but not any "
51 *err_str =
"Object type mismatch, Alembic object path points to XForm.";
General operations, lookup, etc. for blender objects.
struct Object * BKE_object_add_only_object(struct Main *bmain, int type, const char *name) ATTR_RETURNS_NONNULL
Object is a sort of wrapper for general info.
AbcEmptyReader(const Alembic::Abc::IObject &object, ImportSettings &settings)
bool accepts_object_type(const Alembic::AbcCoreAbstract::ObjectHeader &alembic_header, const Object *const ob, const char **err_str) const override
void readObjectData(Main *bmain, const Alembic::Abc::ISampleSelector &sample_sel) override
bool valid() const override
std::string m_object_name
Alembic::Abc::IObject m_iobject
virtual Alembic::AbcGeom::IXform xform()
void get_min_max_time(const Alembic::AbcGeom::IObject &object, const Schema &schema, chrono_t &min, chrono_t &max)