MCPcopy Create free account
hub / github.com/PixarAnimationStudios/OpenUSD / wrapLayerStack

Function wrapLayerStack

pxr/usd/pcp/wrapLayerStack.cpp:49–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47} // anonymous namespace
48
49void wrapLayerStack()
50{
51 class_<PcpLayerStack, PcpLayerStackPtr, noncopyable>
52 ("LayerStack", no_init)
53 .def(TfPyRefAndWeakPtr())
54 .add_property("identifier",
55 make_function(&PcpLayerStack::GetIdentifier,
56 return_value_policy<return_by_value>()))
57 .add_property("layers",
58 make_function(&_GetLayerStackLayers,
59 return_value_policy<TfPySequenceToList>()))
60 .add_property("layerOffsets",
61 make_function(&_GetLayerOffsets,
62 return_value_policy<TfPySequenceToList>()))
63 .add_property("layerTree",
64 make_function(&PcpLayerStack::GetLayerTree,
65 return_value_policy<return_by_value>()))
66 .add_property("sessionLayerTree",
67 make_function(&PcpLayerStack::GetSessionLayerTree,
68 return_value_policy<return_by_value>()))
69 .add_property("mutedLayers",
70 make_function(&PcpLayerStack::GetMutedLayers,
71 return_value_policy<TfPySequenceToList>()))
72 .add_property("expressionVariables",
73 make_function(&PcpLayerStack::GetExpressionVariables,
74 return_value_policy<return_by_value>()))
75 .add_property("expressionVariableDependencies",
76 make_function(
77 &PcpLayerStack::GetExpressionVariableDependencies,
78 return_value_policy<TfPySequenceToList>()))
79 .add_property("relocatesSourceToTarget",
80 make_function(&PcpLayerStack::GetRelocatesSourceToTarget,
81 return_value_policy<return_by_value>()))
82 .add_property("relocatesTargetToSource",
83 make_function(&PcpLayerStack::GetRelocatesTargetToSource,
84 return_value_policy<return_by_value>()))
85 .add_property("incrementalRelocatesSourceToTarget",
86 make_function(
87 &PcpLayerStack::GetIncrementalRelocatesSourceToTarget,
88 return_value_policy<return_by_value>()))
89 .add_property("incrementalRelocatesTargetToSource",
90 make_function(
91 &PcpLayerStack::GetIncrementalRelocatesTargetToSource,
92 return_value_policy<return_by_value>()))
93 .add_property("localErrors",
94 make_function(&PcpLayerStack::GetLocalErrors,
95 return_value_policy<TfPySequenceToList>()))
96 .add_property("pathsToPrimsWithRelocates",
97 make_function(&PcpLayerStack::GetPathsToPrimsWithRelocates,
98 return_value_policy<TfPySequenceToList>()))
99 // TODO: repr, eq, etc.
100 ;
101}

Callers

nothing calls this directly

Calls 4

TfPyRefAndWeakPtrClass · 0.85
make_functionFunction · 0.85
add_propertyMethod · 0.80
defMethod · 0.45

Tested by

no test coverage detected