publishers
ExtractMayaSceneRawModel
Bases: BasicExtractorModel
Add loaded instances to those published families:
Source code in server/settings/publishers.py
810 811 812 813 814 | |
ExtractMayaUsdGeneralModel
Bases: BasicExtractorModel
Source code in server/settings/publishers.py
598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 | |
unit = SettingsField(enum_resolver=maya_usd_unit_enum, title='Export Unit', default='mayaPrefs', description='Control units authored in USD:\n- **mayaPrefs** follows Maya preferences\n- **none** authors no units\n- or choose explicit units (mm, cm, m, in, ft) to author and convert data accordingly.') class-attribute instance-attribute
Custom attributes overrides allow user defined attributes to be exported using custom naming overrides, e.g. by prefixing them all with a default namespace or specifying explict Maya name to USD name mapping.
You can also customize it with the mapping JSON which expects a key for each Maya attribute name to customize output values for, using the custom attribute USD_UserExportedAttributesJson syntax.
Any existing USD_UserExportedAttributesJson attribute on nodes in the scene will still be the strongest opinion - hence these mappings only apply defaults if not explicitly specified in the scene.
ValidateMeshUVSetMap1Model
Bases: BasicValidateModel
Validate model's default uv set exists and is named 'map1'.
Source code in server/settings/publishers.py
102 103 104 | |
ValidateNoAnimationModel
Bases: BasicValidateModel
Ensure no keyframes on nodes in the Instance.
Source code in server/settings/publishers.py
107 108 109 | |
ValidatePluginPathAttributesModel
Bases: BaseSettingsModel
Fill in the node types and attributes you want to validate.
e.g. AlembicNode.abc_file, the node type is AlembicNode and the node attribute is abc_file Source code in
server/settings/publishers.py306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
class ValidatePluginPathAttributesModel(BaseSettingsModel):
"""Fill in the node types and attributes you want to validate.
<p>e.g. <b>AlembicNode.abc_file</b>, the node type is <b>AlembicNode</b>
and the node attribute is <b>abc_file</b>
"""
enabled: bool = SettingsField(title="Enabled")
optional: bool = SettingsField(title="Optional")
active: bool = SettingsField(title="Active")
attribute: list[ValidatePluginPathAttributesAttrModel] = SettingsField(
default_factory=list,
title="File Attribute"
)
@validator("attribute")
def validate_unique_outputs(cls, value):
ensure_unique_names(value)
return value
ValidateShaderNameModel
Bases: BaseSettingsModel
Shader name regex can use named capture group asset to validate against current asset name.
Source code in server/settings/publishers.py
215 216 217 218 219 220 221 222 223 224 225 | |
maya_usd_up_axis_enum()
Get Up Axis enumerator.
Source code in server/settings/publishers.py
588 589 590 591 592 593 594 595 | |
up_axis_enum()
Get Up Axis enumerator.
Source code in server/settings/publishers.py
38 39 40 41 42 43 | |