ConstObjectPtr HoudiniScene::readObject( double time ) const { OBJ_Node *objNode = retrieveNode( true )->castToOBJNode(); if ( !objNode ) { return 0; } if ( objNode->getObjectType() == OBJ_GEOMETRY ) { OP_Context context( time ); GU_DetailHandle handle = objNode->getRenderGeometryHandle( context, false ); if ( !m_splitter || ( handle != m_splitter->handle() ) ) { m_splitter = new DetailSplitter( handle ); } GU_DetailHandle newHandle = m_splitter->split( contentPathValue() ); FromHoudiniGeometryConverterPtr converter = FromHoudiniGeometryConverter::create( ( newHandle.isNull() ) ? handle : newHandle ); if ( !converter ) { return 0; } return converter->convert(); } /// \todo: need to account for cameras and lights return 0; }