//virtual UsdPrim MayaNurbsCurveWriter::write(const UsdTimeCode &usdTime) { // == Write UsdGeomNurbsCurves primSchema = UsdGeomNurbsCurves::Define(getUsdStage(), getUsdPath()); TF_AXIOM(primSchema); UsdPrim prim = primSchema.GetPrim(); TF_AXIOM(prim); // Write the attrs writeNurbsCurveAttrs(usdTime, primSchema); return prim; }
/* virtual */ UsdPrim MayaCameraWriter::write(const UsdTimeCode &usdTime) { // == Write UsdGeomCamera primSchema = UsdGeomCamera::Define(getUsdStage(), getUsdPath()); TF_AXIOM(primSchema); UsdPrim prim = primSchema.GetPrim(); TF_AXIOM(prim); // Write parent class attrs writeTransformAttrs(usdTime, primSchema); // Write the attrs writeCameraAttrs(usdTime, primSchema); return prim; }
//virtual UsdPrim MayaMeshWriter::write(const UsdTimeCode &usdTime) { if ( !isMeshValid() ) { return UsdPrim(); } // Get schema UsdGeomMesh primSchema = UsdGeomMesh::Define(getUsdStage(), getUsdPath()); TF_AXIOM(primSchema); UsdPrim meshPrim = primSchema.GetPrim(); TF_AXIOM(meshPrim); // Write the attrs writeMeshAttrs(usdTime, primSchema); return meshPrim; }