plugin
Houdini specific AYON/Pyblish plugin definitions.
HoudiniContextPlugin
Bases: ContextPlugin
Base class for Houdini context publish plugins.
Source code in client/ayon_houdini/api/plugin.py
454 455 456 457 458 | |
HoudiniCreator
Bases: Creator, HoudiniCreatorBase
Base class for most of the Houdini creator plugins.
Source code in client/ayon_houdini/api/plugin.py
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 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 201 202 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 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 | |
apply_settings(project_settings)
Method called on initialization of plugin to apply settings.
Source code in client/ayon_houdini/api/plugin.py
340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 | |
customize_node_look(node, color=None, shape='chevron_down') staticmethod
Set custom look for instance nodes.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
node | Node | Node to set look. | required |
color | (Color, Optional) | Color of the node. | None |
shape | (str, Optional) | Shape name of the node. | 'chevron_down' |
Returns:
| Type | Description |
|---|---|
| None |
Source code in client/ayon_houdini/api/plugin.py
289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 | |
get_network_categories()
Return in which network view type this creator should show.
The node type categories returned here will be used to define where the creator will show up in the TAB search for nodes in Houdini's Network View.
This can be overridden in inherited classes to define where that particular Creator should be visible in the TAB search.
Returns:
| Name | Type | Description |
|---|---|---|
list | List of houdini node type categories |
Source code in client/ayon_houdini/api/plugin.py
324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 | |
get_publish_families()
Return families for the instances of this creator.
Allow a Creator to define multiple families so that a creator can e.g. specify usd and usdrop.
There is no need to override this method if you only have the primary family defined by the product_type property as that will always be set.
Returns:
| Type | Description |
|---|---|
| List[str]: families for instances of this creator |
Source code in client/ayon_houdini/api/plugin.py
309 310 311 312 313 314 315 316 317 318 319 320 321 322 | |
lock_parameters(node, parameters)
Lock list of specified parameters on the node.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
node | Node | Houdini node to lock parameters on. | required |
parameters | list of str | List of parameter names. | required |
Source code in client/ayon_houdini/api/plugin.py
208 209 210 211 212 213 214 215 216 217 218 219 220 221 | |
remove_instances(instances)
Remove specified instance from the scene.
This is only removing id parameter so instance is no longer instance, because it might contain valuable data for artist.
Source code in client/ayon_houdini/api/plugin.py
270 271 272 273 274 275 276 277 278 279 280 281 282 | |
HoudiniCreatorBase
Bases: object
Source code in client/ayon_houdini/api/plugin.py
78 79 80 81 82 83 84 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 120 121 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 | |
cache_instance_data(shared_data) staticmethod
Cache instances for Creators to shared data.
Create houdini_cached_instances key when needed in shared data and fill it with all collected instances from the scene under its respective creator identifiers.
Create houdini_cached_legacy_instance key for any legacy instances detected in the scene as instances per product type (legacy: family).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Dict[str, Any] | Shared data. | required |
Source code in client/ayon_houdini/api/plugin.py
79 80 81 82 83 84 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 120 121 122 123 124 125 126 127 | |
create_instance_node(folder_path, node_name, parent, node_type='geometry', pre_create_data=None) staticmethod
Create node representing instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
folder_path | str | Folder path. | required |
node_name | str | Name of the new node. | required |
parent | str | Name of the parent node. | required |
node_type | str | Type of the node. | 'geometry' |
pre_create_data | Optional[Dict] | Pre create data. | None |
Returns:
| Type | Description |
|---|---|
| hou.Node: Newly created instance node. |
Source code in client/ayon_houdini/api/plugin.py
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 | |
HoudiniExtractorPlugin
Bases: Extractor
Base class for Houdini extract plugins.
Note
The HoudiniExtractorPlugin is a subclass of publish.Extractor, which in turn is a subclass of pyblish.api.InstancePlugin. Should there be a requirement to create an extractor that operates as a context plugin, it would be beneficial to incorporate the functionalities present in publish.Extractor.
Source code in client/ayon_houdini/api/plugin.py
461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 | |
render_rop(instance)
Render the ROP node of the instance.
If instance.data["frames_to_fix"] is set and is not empty it will be interpreted as a set of frames that will be rendered instead of the full rop nodes frame range.
Only instance.data["instance_node"] is required.
Source code in client/ayon_houdini/api/plugin.py
475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 | |
HoudiniInstancePlugin
Bases: InstancePlugin
Base class for Houdini instance publish plugins.
Source code in client/ayon_houdini/api/plugin.py
447 448 449 450 451 | |
HoudiniLoader
Bases: LoaderPlugin
Base class for Houdini load plugins.
Source code in client/ayon_houdini/api/plugin.py
386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 | |
RenderLegacyProductTypeCreator
Bases: HoudiniCreator
Creator for Render ROPs to allow toggling between legacy product types and the 'render' product type. This is mostly for backwards compatibility. See #214.
Source code in client/ayon_houdini/api/plugin.py
365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 | |