stages
stages
Opening, creating, saving and closing stages.
Attributes
Functions:
close_all()
Close every opened stage without saving.
Source code in src/nyx_usd/ops/stages.py
51 52 53 | |
close_stage(stage)
Close a stage without saving it. Does nothing if it is not open.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
stage
|
str
|
stage handle. |
required |
Source code in src/nyx_usd/ops/stages.py
42 43 44 45 46 47 48 | |
create_stage(path='')
Create a stage.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
file the stage is saved to. In memory only if empty. |
''
|
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
handle of the stage. |
Source code in src/nyx_usd/ops/stages.py
29 30 31 32 33 34 35 36 37 38 39 | |
open_stage(path)
Open a USD file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
file to open. |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
the file can't be opened. |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
handle of the stage. |
Source code in src/nyx_usd/ops/stages.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | |
save_stage(stage, path='')
Save a stage.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
stage
|
str
|
stage handle. |
required |
path
|
str
|
file to export the stage to, its own file if empty. |
''
|
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
handle of the stage. |
Source code in src/nyx_usd/ops/stages.py
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | |