MCPcopy Create free account
hub / github.com/ImageEngine/cortex / cortexAttributeName

Method cortexAttributeName

contrib/IECoreUSD/src/IECoreUSD/AttributeAlgo.cpp:239–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239IECore::InternedString IECoreUSD::AttributeAlgo::cortexAttributeName( const pxr::UsdAttribute &attribute )
240{
241 if( pxr::UsdGeomPrimvar primvar = pxr::UsdGeomPrimvar( attribute ) )
242 {
243 if( isCortexAttribute( primvar ) )
244 {
245 return AttributeAlgo::nameFromUSD( { primvar.GetPrimvarName(), true } );
246 }
247 }
248 else
249 {
250 const std::string &n = attribute.GetName().GetString();
251 if ( n.find( ":" ) != std::string::npos && attribute.IsCustom() )
252 {
253 return AttributeAlgo::nameFromUSD( { attribute.GetName(), false } );
254 }
255 }
256 return IECore::InternedString();
257}
258

Callers

nothing calls this directly

Calls 2

InternedStringFunction · 0.85
findMethod · 0.45

Tested by

no test coverage detected