_usd_builtins.py 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. """A collection of known USD-related keywords, attributes, and types."""
  4. COMMON_ATTRIBUTES = [
  5. "extent",
  6. "xformOpOrder",
  7. ]
  8. KEYWORDS = [
  9. "class",
  10. "clips",
  11. "custom",
  12. "customData",
  13. "def",
  14. "dictionary",
  15. "inherits",
  16. "over",
  17. "payload",
  18. "references",
  19. "rel",
  20. "subLayers",
  21. "timeSamples",
  22. "uniform",
  23. "variantSet",
  24. "variantSets",
  25. "variants",
  26. ]
  27. OPERATORS = [
  28. "add",
  29. "append",
  30. "delete",
  31. "prepend",
  32. "reorder",
  33. ]
  34. SPECIAL_NAMES = [
  35. "active",
  36. "apiSchemas",
  37. "defaultPrim",
  38. "elementSize",
  39. "endTimeCode",
  40. "hidden",
  41. "instanceable",
  42. "interpolation",
  43. "kind",
  44. "startTimeCode",
  45. "upAxis",
  46. ]
  47. TYPES = [
  48. "asset",
  49. "bool",
  50. "color3d",
  51. "color3f",
  52. "color3h",
  53. "color4d",
  54. "color4f",
  55. "color4h",
  56. "double",
  57. "double2",
  58. "double3",
  59. "double4",
  60. "float",
  61. "float2",
  62. "float3",
  63. "float4",
  64. "frame4d",
  65. "half",
  66. "half2",
  67. "half3",
  68. "half4",
  69. "int",
  70. "int2",
  71. "int3",
  72. "int4",
  73. "keyword",
  74. "matrix2d",
  75. "matrix3d",
  76. "matrix4d",
  77. "normal3d",
  78. "normal3f",
  79. "normal3h",
  80. "point3d",
  81. "point3f",
  82. "point3h",
  83. "quatd",
  84. "quatf",
  85. "quath",
  86. "string",
  87. "syn",
  88. "token",
  89. "uchar",
  90. "uchar2",
  91. "uchar3",
  92. "uchar4",
  93. "uint",
  94. "uint2",
  95. "uint3",
  96. "uint4",
  97. "usdaType",
  98. "vector3d",
  99. "vector3f",
  100. "vector3h",
  101. ]