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
556 557 558 559 560 | |
HoudiniCreator
Bases: Creator, HoudiniCreatorBase
Base class for most of the Houdini creator plugins.
Source code in client/ayon_houdini/api/plugin.py
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 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 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 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 | |
apply_settings(project_settings)
Method called on initialization of plugin to apply settings.
Source code in client/ayon_houdini/api/plugin.py
379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 | |
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
328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 | |
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
363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 | |
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
348 349 350 351 352 353 354 355 356 357 358 359 360 361 | |
get_staging_dir(instance)
Get Staging Dir
Return the staging dir and persistence from instance.
This method falls back to the default output path defined in settings ayon+settings://houdini/general/rop_output/default_output_dir
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
instance | CreatedInstance | Instance for which should be staging dir gathered. | required |
Returns:
| Type | Description |
|---|---|
Optional[StagingDir] | Optional[StagingDir]: Staging dir path |
Source code in client/ayon_houdini/api/plugin.py
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 | |
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
245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 | |
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
309 310 311 312 313 314 315 316 317 318 319 320 321 | |
set_node_staging_dir(node, staging_dir, instance, pre_create_data)
Set Node Staging Dir
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
node | Node | Houdini node to set its output directory. | required |
staging_dir | str | Staging output directory. | required |
instance | CreatedInstance | Instance object associated with the given node. | required |
pre_create_data | dict | Data based on pre creation attributes. | required |
Source code in client/ayon_houdini/api/plugin.py
443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 | |
HoudiniCreatorBase
Bases: object
Source code in client/ayon_houdini/api/plugin.py
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 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 | |
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
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 | |
create_instance_node(folder_path, node_name, parent, node_type='geometry', pre_create_data=None, instance_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 |
instance_data | Optional[Dict] | Instance data. | None |
Returns:
| Type | Description |
|---|---|
| hou.Node: Newly created instance node. |
Source code in client/ayon_houdini/api/plugin.py
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 170 | |
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
563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 | |
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
577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 | |
HoudiniInstancePlugin
Bases: InstancePlugin
Base class for Houdini instance publish plugins.
Source code in client/ayon_houdini/api/plugin.py
549 550 551 552 553 | |
HoudiniLoader
Bases: LoaderPlugin
Base class for Houdini load plugins.
Source code in client/ayon_houdini/api/plugin.py
488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 | |
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
466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 | |