pipeline
get_container_nodes()
Return a list of node names that are marked as loaded container.
Source code in client/ayon_openrv/api/pipeline.py
231 232 233 234 235 236 237 238 |
|
get_containers()
Yield container data for each container found in current workfile.
Source code in client/ayon_openrv/api/pipeline.py
241 242 243 244 245 246 |
|
imprint(node, data, prefix=None)
Store attributes with value on a node.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
node | object | The node to imprint data on. | required |
data | dict | Key value pairs of attributes to create. | required |
prefix | str | A prefix to add to all keys in the data. | None |
Returns:
Type | Description |
---|---|
None |
Source code in client/ayon_openrv/api/pipeline.py
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 |
|
imprint_container(node, name, namespace, context, loader)
Imprint node
with container metadata.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
node | object | The node to containerise. | required |
name | str | Name of resulting assembly | required |
namespace | str | Namespace under which to host container | required |
context | dict | Asset information | required |
loader | str | Name of loader used to produce this container. | required |
Returns:
Type | Description |
---|---|
None |
Source code in client/ayon_openrv/api/pipeline.py
172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 |
|
parse_container(node)
Returns imprinted container data of a tool
This reads the imprinted data from imprint_container
.
Source code in client/ayon_openrv/api/pipeline.py
203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 |
|
read(node, prefix=None)
Read properties from the given node with the values
This function assumes all read values are of a single width and will return only the first entry. As such, arrays or multidimensional properties will not be returned correctly.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
node | str | Name of node. | required |
prefix | str | A prefix for the attributes to consider. This prefix will be stripped from the output key. | None |
Returns:
Name | Type | Description |
---|---|---|
dict | The key, value of the properties. |
Source code in client/ayon_openrv/api/pipeline.py
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 |
|