![]() |
Trax3 3.1.0
trax track library
|
Trax writer for USD prims. More...
#include <C:/Trend/Development/Trax3/Code/usd/SupportUSD_Exporter.h>

Public Member Functions | |
| USDExporter (pxr::UsdStageRefPtr stage, const pxr::SdfPath &atPath, bool bWriteTrackMesh=false) | |
| void | Prepare (TrackSystem &tracksystem) |
| Prepare the stage for writing the track system. | |
| void | Write (const TrackSystem &tracksystem) |
| Write the track system to the stage. | |
| pxr::UsdStageRefPtr | GetStage () const noexcept |
Trax writer for USD prims.
The USDExporter writes trax objects to an USD stage. Do not combine the USDExporter with the USDReader in a read/write cycle, since the values might migrate over many cycles; use the XML read/write support for that purpose.
| void trax::USDExporter::Prepare | ( | TrackSystem & | tracksystem | ) |
Prepare the stage for writing the track system.
| tracksystem | TrackSystem to prepare. |
The method writes the USDPath property to the objects references, so they can be used to establish connections in the USD file. If the TrackSystem was read by USDReader there is no need to call the method prior to writing.