-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add arguments for specifying detached layers in usdview
Detached layers in usdview can be specified using the arguments --detachLayers, --detachLayersInclude, and --detachLayersExclude. Fixes #1852 (Internal change: 2247862)
- Loading branch information
Showing
11 changed files
with
231 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+492 Bytes
pxr/usdImaging/bin/testusdview/testenv/testUsdviewDetachedLayers/bar.usd
Binary file not shown.
Binary file added
BIN
+492 Bytes
pxr/usdImaging/bin/testusdview/testenv/testUsdviewDetachedLayers/foo.usd
Binary file not shown.
Binary file added
BIN
+652 Bytes
pxr/usdImaging/bin/testusdview/testenv/testUsdviewDetachedLayers/root.usd
Binary file not shown.
33 changes: 33 additions & 0 deletions
33
pxr/usdImaging/bin/testusdview/testenv/testUsdviewDetachedLayers/testDetachedLayers_1.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/pxrpythonsubst | ||
# | ||
# Copyright 2022 Pixar | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "Apache License") | ||
# with the following modification; you may not use this file except in | ||
# compliance with the Apache License and the following modification to it: | ||
# Section 6. Trademarks. is deleted and replaced with: | ||
# | ||
# 6. Trademarks. This License does not grant permission to use the trade | ||
# names, trademarks, service marks, or product names of the Licensor | ||
# and its affiliates, except as required to comply with Section 4(c) of | ||
# the License and to reproduce the content of the NOTICE file. | ||
# | ||
# You may obtain a copy of the Apache License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the Apache License with the above modification is | ||
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the Apache License for the specific | ||
# language governing permissions and limitations under the Apache License. | ||
# | ||
|
||
def testUsdviewInputFunction(appController): | ||
from pxr import Sdf | ||
|
||
assert Sdf.Layer.Find('root.usd').IsDetached() | ||
assert Sdf.Layer.Find('foo.usd').IsDetached() | ||
assert Sdf.Layer.Find('bar.usd').IsDetached() | ||
assert Sdf.Layer.Find('with spaces.usd').IsDetached() | ||
|
33 changes: 33 additions & 0 deletions
33
pxr/usdImaging/bin/testusdview/testenv/testUsdviewDetachedLayers/testDetachedLayers_2.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/pxrpythonsubst | ||
# | ||
# Copyright 2022 Pixar | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "Apache License") | ||
# with the following modification; you may not use this file except in | ||
# compliance with the Apache License and the following modification to it: | ||
# Section 6. Trademarks. is deleted and replaced with: | ||
# | ||
# 6. Trademarks. This License does not grant permission to use the trade | ||
# names, trademarks, service marks, or product names of the Licensor | ||
# and its affiliates, except as required to comply with Section 4(c) of | ||
# the License and to reproduce the content of the NOTICE file. | ||
# | ||
# You may obtain a copy of the Apache License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the Apache License with the above modification is | ||
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the Apache License for the specific | ||
# language governing permissions and limitations under the Apache License. | ||
# | ||
|
||
def testUsdviewInputFunction(appController): | ||
from pxr import Sdf | ||
|
||
assert not Sdf.Layer.Find('root.usd').IsDetached() | ||
assert Sdf.Layer.Find('foo.usd').IsDetached() | ||
assert not Sdf.Layer.Find('bar.usd').IsDetached() | ||
assert Sdf.Layer.Find('with spaces.usd').IsDetached() | ||
|
32 changes: 32 additions & 0 deletions
32
pxr/usdImaging/bin/testusdview/testenv/testUsdviewDetachedLayers/testDetachedLayers_3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/pxrpythonsubst | ||
# | ||
# Copyright 2022 Pixar | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "Apache License") | ||
# with the following modification; you may not use this file except in | ||
# compliance with the Apache License and the following modification to it: | ||
# Section 6. Trademarks. is deleted and replaced with: | ||
# | ||
# 6. Trademarks. This License does not grant permission to use the trade | ||
# names, trademarks, service marks, or product names of the Licensor | ||
# and its affiliates, except as required to comply with Section 4(c) of | ||
# the License and to reproduce the content of the NOTICE file. | ||
# | ||
# You may obtain a copy of the Apache License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the Apache License with the above modification is | ||
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the Apache License for the specific | ||
# language governing permissions and limitations under the Apache License. | ||
# | ||
|
||
def testUsdviewInputFunction(appController): | ||
from pxr import Sdf | ||
|
||
assert Sdf.Layer.Find('root.usd').IsDetached() | ||
assert not Sdf.Layer.Find('foo.usd').IsDetached() | ||
assert Sdf.Layer.Find('bar.usd').IsDetached() | ||
assert not Sdf.Layer.Find('with spaces.usd').IsDetached() |
33 changes: 33 additions & 0 deletions
33
pxr/usdImaging/bin/testusdview/testenv/testUsdviewDetachedLayers/testDetachedLayers_4.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/pxrpythonsubst | ||
# | ||
# Copyright 2022 Pixar | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "Apache License") | ||
# with the following modification; you may not use this file except in | ||
# compliance with the Apache License and the following modification to it: | ||
# Section 6. Trademarks. is deleted and replaced with: | ||
# | ||
# 6. Trademarks. This License does not grant permission to use the trade | ||
# names, trademarks, service marks, or product names of the Licensor | ||
# and its affiliates, except as required to comply with Section 4(c) of | ||
# the License and to reproduce the content of the NOTICE file. | ||
# | ||
# You may obtain a copy of the Apache License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the Apache License with the above modification is | ||
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the Apache License for the specific | ||
# language governing permissions and limitations under the Apache License. | ||
# | ||
|
||
def testUsdviewInputFunction(appController): | ||
from pxr import Sdf | ||
|
||
assert not Sdf.Layer.Find('root.usd').IsDetached() | ||
assert not Sdf.Layer.Find('foo.usd').IsDetached() | ||
assert not Sdf.Layer.Find('bar.usd').IsDetached() | ||
assert not Sdf.Layer.Find('with spaces.usd').IsDetached() | ||
|
Binary file added
BIN
+492 Bytes
pxr/usdImaging/bin/testusdview/testenv/testUsdviewDetachedLayers/with spaces.usd
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters