Skip to content

Instantly share code, notes, and snippets.

@jpankalainen
jpankalainen / gist:ef59978aae1e99cde52d561d61d913fa
Created November 4, 2021 12:37
pxr::SdfJustCreatePrimAttributeInLayer
#include <iostream>
#include "pxr/pxr.h"
#include "pxr/usd/usd/stage.h"
#include "pxr/usd/usdGeom/xformable.h"
int main()
{
pxr::UsdStageRefPtr stage = pxr::UsdStage::CreateInMemory( "Stage" );
@jpankalainen
jpankalainen / reload_stage.cpp
Last active August 30, 2021 06:48
Repro for ObjectsChanged Reload notice issue
#include <iostream>
#include "pxr/pxr.h"
#include "pxr/usd/usd/stage.h"
#include "pxr/usd/usd/references.h"
#include "pxr/usd/usd/notice.h"
class StageListener : public pxr::TfWeakBase
{