Houdini Engine 7.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
HAPI_Common.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  */
7 
8 #ifndef __HAPI_COMMON_h__
9 #define __HAPI_COMMON_h__
10 
11 #include "HAPI_API.h"
12 
13 /////////////////////////////////////////////////////////////////////////////
14 // Defines
15 
16 #define HAPI_POSITION_VECTOR_SIZE 3
17 #define HAPI_SCALE_VECTOR_SIZE 3
18 #define HAPI_SHEAR_VECTOR_SIZE 3
19 #define HAPI_NORMAL_VECTOR_SIZE 3
20 #define HAPI_QUATERNION_VECTOR_SIZE 4
21 #define HAPI_EULER_VECTOR_SIZE 3
22 #define HAPI_UV_VECTOR_SIZE 2
23 #define HAPI_COLOR_VECTOR_SIZE 4
24 #define HAPI_CV_VECTOR_SIZE 4
25 
26 #define HAPI_PRIM_MIN_VERTEX_COUNT 1
27 #define HAPI_PRIM_MAX_VERTEX_COUNT 16
28 
29 #define HAPI_INVALID_PARM_ID -1
30 
31 #define HAPI_MAX_NUM_CONNECTIONS 128
32 
33 /// Common Default Attributes' Names
34 /// @{
35 #define HAPI_ATTRIB_POSITION "P"
36 #define HAPI_ATTRIB_UV "uv"
37 #define HAPI_ATTRIB_UV2 "uv2"
38 #define HAPI_ATTRIB_NORMAL "N"
39 #define HAPI_ATTRIB_TANGENT "tangentu"
40 #define HAPI_ATTRIB_TANGENT2 "tangentv"
41 #define HAPI_ATTRIB_COLOR "Cd"
42 #define HAPI_ATTRIB_NAME "name"
43 #define HAPI_ATTRIB_INSTANCE "instance"
44 #define HAPI_ATTRIB_ROT "rot"
45 #define HAPI_ATTRIB_SCALE "scale"
46 /// @}
47 
48 /// This is the name of the primitive group created from all the primitives
49 /// that are not in any user-defined group. This way, when you put all the
50 /// groups together you cover the entire mesh. This is important for some
51 /// clients where the mesh has to be defined in terms of submeshes that cover
52 /// the entire original mesh.
53 #define HAPI_UNGROUPED_GROUP_NAME "__ungrouped_group"
54 
55 /// Common image file format names (to use with the material extract APIs).
56 /// Note that you may still want to check if they are supported via
57 /// HAPI_GetSupportedImageFileFormats() since all formats are loaded
58 /// dynamically by Houdini on-demand so just because these formats are defined
59 /// here doesn't mean they are supported in your instance.
60 /// @{
61 #define HAPI_RAW_FORMAT_NAME "HAPI_RAW" // HAPI-only Raw Format
62 #define HAPI_PNG_FORMAT_NAME "PNG"
63 #define HAPI_JPEG_FORMAT_NAME "JPEG"
64 #define HAPI_BMP_FORMAT_NAME "Bitmap"
65 #define HAPI_TIFF_FORMAT_NAME "TIFF"
66 #define HAPI_TGA_FORMAT_NAME "Targa"
67 /// @}
68 
69 /// Default image file format's name - used when the image generated and has
70 /// no "original" file format and the user does not specify a format to
71 /// convert to.
72 #define HAPI_DEFAULT_IMAGE_FORMAT_NAME HAPI_PNG_FORMAT_NAME
73 
74 /// Name of subnet OBJ node containing the global nodes.
75 #define HAPI_GLOBAL_NODES_NODE_NAME "GlobalNodes"
76 
77 /// Environment variables.
78 #define HAPI_ENV_HIP "HIP"
79 #define HAPI_ENV_JOB "JOB"
80 #define HAPI_ENV_CLIENT_NAME "HAPI_CLIENT_NAME"
81 
82 /// [HAPI_CACHE]
83 /// Common cache names. You can see these same cache names in the
84 /// Cache Manager window in Houdini (Windows > Cache Manager).
85 #define HAPI_CACHE_COP2_COOK "COP Cook Cache"
86 #define HAPI_CACHE_COP2_FLIPBOOK "COP Flipbook Cache"
87 #define HAPI_CACHE_IMAGE "Image Cache"
88 #define HAPI_CACHE_OBJ "Object Transform Cache"
89 #define HAPI_CACHE_GL_TEXTURE "OpenGL Texture Cache"
90 #define HAPI_CACHE_GL_VERTEX "OpenGL Vertex Cache"
91 #define HAPI_CACHE_SOP "SOP Cache"
92 #define HAPI_CACHE_VEX "VEX File Cache"
93 /// [HAPI_CACHE]
94 
95 /// [HAPI_InputCurve]
96 /// HAPI input curve attribute
97 #define HAPI_ATTRIB_INPUT_CURVE_COORDS "hapi_input_curve_coords"
98 /// [HAPI_InputCurve]
99 
100 // Make sure our enums and structs are usable without those keywords, as-is,
101 // in C.
102 #ifdef __cplusplus
103  #define HAPI_C_ENUM_TYPEDEF( enum_name )
104  #define HAPI_C_STRUCT_TYPEDEF( struct_name )
105 #else
106  #define HAPI_C_ENUM_TYPEDEF( enum_name ) \
107  typedef enum enum_name enum_name;
108  #define HAPI_C_STRUCT_TYPEDEF( struct_name ) \
109  typedef struct struct_name struct_name;
110 #endif // __cplusplus
111 
112 /////////////////////////////////////////////////////////////////////////////
113 // Typedefs
114 
115 // C has no bool.
116 #ifdef __cplusplus
117  typedef bool HAPI_Bool;
118 #else
119  typedef char HAPI_Bool;
120 #endif // __cplusplus
121 
122 // x-bit Integers
123 // Thrift doesn't support unsigned integers, so we cast it as a signed 8-bit int, but only
124 // for automated code generation and thrift
125 #ifdef HAPI_AUTOGEN
126  typedef signed char int8_t;
127  typedef short int16_t;
128  typedef long long int64_t;
129  typedef signed char HAPI_UInt8; // signed 8-bit int for thrift to avoid overflow
130 #else
131  #include <stdint.h>
132  #ifdef HAPI_THRIFT_ABI
133  typedef int8_t HAPI_UInt8; // signed 8-bit int for thrift to avoid overflow
134  #else
135  typedef uint8_t HAPI_UInt8;
136  HAPI_STATIC_ASSERT(sizeof(HAPI_UInt8) == 1, unsupported_size_of_uint8);
137  #endif
138 #endif
139 
140 typedef int8_t HAPI_Int8;
141 HAPI_STATIC_ASSERT(sizeof(HAPI_Int8) == 1, unsupported_size_of_int8);
142 typedef int16_t HAPI_Int16;
143 HAPI_STATIC_ASSERT(sizeof(HAPI_Int16) == 2, unsupported_size_of_int16);
144 typedef int64_t HAPI_Int64;
145 HAPI_STATIC_ASSERT(sizeof(HAPI_Int64) == 8, unsupported_size_of_long);
146 
147 
148 // The process id has to be uint on Windows and int on any other platform.
149 #if ( defined _WIN32 || defined WIN32 )
150  typedef unsigned int HAPI_ProcessId;
151 #else
152  typedef int HAPI_ProcessId;
153 #endif
154 
155 /// Has to be 64-bit.
156 typedef HAPI_Int64 HAPI_SessionId;
157 
158 /// Use this with HAPI_GetString() to get the value.
159 /// See @ref HAPI_Fundamentals_Strings.
160 typedef int HAPI_StringHandle;
161 
163 
164 /// See @ref HAPI_Nodes_Basics.
165 typedef int HAPI_NodeId;
166 
167 /// Either get this from the ::HAPI_ParmInfo or ::HAPI_GetParmIdFromName().
168 /// See @ref HAPI_Parameters.
169 typedef int HAPI_ParmId;
170 
171 /// Use this with ::HAPI_GetPartInfo().
172 /// See @ref HAPI_Parts.
173 typedef int HAPI_PartId;
174 
175 /// Use this with PDG functions
177 
178 /// Backwards compatibility for HAPI_PDG_WorkitemId
179 typedef HAPI_PDG_WorkItemId HAPI_PDG_WorkitemId;
180 
181 /// Use this with PDG functions
183 
184 /// When we load a HIP file, we associate a HIP file ID with the created nodes
185 /// so that they can be looked up later
186 typedef int HAPI_HIPFileId;
187 
188 /////////////////////////////////////////////////////////////////////////////
189 // Enums
190 
192 {
201 };
203 
205 {
210 };
212 
214 {
218 
219  /// Used for Results. Equivalent to ::HAPI_STATUSVERBOSITY_2
221  /// Used for Results. Equivalent to ::HAPI_STATUSVERBOSITY_0
223  /// Used for Results. Equivalent to ::HAPI_STATUSVERBOSITY_1
225  /// Used for Results. Equivalent to ::HAPI_STATUSVERBOSITY_2
227 };
229 
231 {
235 };
237 
239 {
251 
258 
261 
263 
265 };
267 
269 {
272 };
274 typedef int HAPI_ErrorCodeBits;
275 
277 {
284 };
286 
288 {
289  /// Everything cook successfully without errors
291  /// You should abort the cook.
293  /// Only some objects failed.
300 
302 };
304 
306 {
312 };
314 
316 {
322 };
324 
326 {
331 };
333 
334 /// Represents the data type of a parm.
335 /// As you can see, some of these high level types share the same underlying
336 /// raw data type. For instance, both string and file parameter types can be
337 /// represented with strings, yet semantically they are different. We will
338 /// group high level parameter types that share an underlying raw data type
339 /// together, so you can always check the raw data type of a parameter based
340 /// on its high level data type by checking a range of values.
342 {
343  /// @{
348  /// }@
349 
350  /// @{
353  /// @}
354 
355  /// @{
360  /// @}
361 
363 
364  /// @{
367  /// @}
368 
369  /// @{
374  /// @}
375 
376  // Helpers
377 
378  /// Total number of supported parameter types.
380 
383 
386 
389 
392 
395 
398 
401 };
403 
404 /// Corresponds to the types as shown in the Houdini Type Properties
405 /// window and in DialogScript files. Available on HAPI_ParmInfo
406 /// See: <a href="http://www.sidefx.com/docs/houdini/ref/windows/optype.html#parmtypes">Parameter types</a>
407 ///
409 {
410  /// "int", "integer"
419  /// "toggle", "embed"
423  /// "vector", "vector3"
427  /// "intvector", "intvector3"
432  /// "dir", "direction"
434  /// "color", "rgb"
436  /// "color4", "rgba"
460 
461  /// The following apply to HAPI_PARMTYPE_FOLDER type parms.
462  /// Radio buttons Folder
464  /// Collapsible Folder
466  /// Simple Folder
468  /// Tabs Folder
470 };
472 
474 {
475  /// Parameter is not a menu
477  /// Menu Only, Single Selection
479  /// Mini Menu Only, Single Selection
481  /// Field + Single Selection Menu
483  /// Field + Multiple Selection Menu
485 };
487 
489 {
491  /// Just the presets binary blob
493  /// Presets blob within an .idx file format
496 };
498 
500 {
512 };
514 typedef int HAPI_NodeTypeBits;
515 
516 /// Flags used to filter compositions of node lists.
517 /// Flags marked 'Recursive Flag' will exclude children whos parent does not
518 /// satisfy the flag, even if the children themselves satisfy the flag.
520 {
523  /// Recursive Flag
525  /// Recursive Flag
532 
533  /// OBJ Node Specific Flags
538 
539  /// SOP Node Specific Flags
540  /// Looks for "curve"
542  /// Looks for Guide Geometry
544 
545  /// TOP Node Specific Flags
546  /// All TOP nodes except schedulers
548 
549  HAPI_NODEFLAGS_NON_BYPASS = 1 << 14 /// Nodes that are not bypassed
550 };
552 typedef int HAPI_NodeFlagsBits;
553 
555 {
561 };
563 
565 {
572 };
574 
576 {
582 };
584 
586 {
591 };
593 
595 {
601 };
603 
605 {
610 };
612 
614 {
622 };
624 
626 {
628 
638 
648 
650 };
652 
654 {
656  /// Implicit type based on data
658  /// Position
660  /// Homogeneous position
662  /// Direction vector
664  /// Normal
666  /// Color
668  /// Quaternion
670  /// 3x3 Matrix
672  /// Matrix
674  /// Parametric interval
676  /// "Private" (hidden)
678  /// 2x2 Bounding box
680  /// 3x3 Bounding box
682  /// Texture coordinate
685 };
687 
689 {
691 
692  /// Most geos will be of this type which essentially means a geo
693  /// not of the other types.
695 
696  /// An exposed edit node.
697  /// See @ref HAPI_IntermediateAssetsResults.
699 
700  /// An input geo that can accept geometry from the host.
701  /// See @ref HAPI_AssetInputs_MarshallingGeometryIntoHoudini.
703 
704  /// A curve.
705  /// See @ref HAPI_Curves.
707 
709 };
711 
713 {
722 };
724 
726 {
731 };
733 
735 {
741 };
743 
745 {
759 };
761 
763 {
764  HAPI_TRS = 0,
770 
772 };
774 
776 {
777  HAPI_XYZ = 0,
783 
785 };
787 
789 {
797 
799 };
801 
803 {
805  HAPI_IMAGE_PACKING_SINGLE, /// Single Channel
806  HAPI_IMAGE_PACKING_DUAL, /// Dual Channel
808  HAPI_IMAGE_PACKING_BGR, /// RGB Reversed
810  HAPI_IMAGE_PACKING_ABGR, /// RGBA Reversed
812 
815 };
817 
818 /// Used with ::HAPI_GetEnvInt() to retrieve basic information
819 /// about the HAPI implementation currently being linked
820 /// against. Note that as of HAPI version 2.0, these enum values are
821 /// guaranteed never to change so you can reliably get this information from
822 /// any post-2.0 version of HAPI. The same goes for the actual
823 /// ::HAPI_GetEnvInt() API call.
825 {
827 
828  /// The three components of the Houdini version that HAPI is
829  /// expecting to link against.
830  /// @{
835  /// @}
836 
837  /// The two components of the Houdini Engine (marketed) version.
838  /// @{
841  /// @}
842 
843  /// This is a monotonously increasing API version number that can be used
844  /// to lock against a certain API for compatibility purposes. Basically,
845  /// when this number changes code compiled against the HAPI.h methods
846  /// might no longer compile. Semantic changes to the methods will also
847  /// cause this version to increase. This number will be reset to 0
848  /// every time the Houdini Engine version is bumped.
850 
852 };
854 
855 /// This enum is to be used with ::HAPI_GetSessionEnvInt() to retrieve basic
856 /// session-specific information.
858 {
860 
861  /// License Type. See ::HAPI_License.
863 
865 };
867 
868 /// Identifies a memory cache
870 {
871  /// Current memory usage in MB. Setting this to 0 invokes
872  /// a cache clear.
874 
875  HAPI_CACHEPROP_HAS_MIN, /// True if it actually has a minimum size.
876  HAPI_CACHEPROP_MIN, /// Min cache memory limit in MB.
877  HAPI_CACHEPROP_HAS_MAX, /// True if it actually has a maximum size.
878  HAPI_CACHEPROP_MAX, /// Max cache memory limit in MB.
879 
880  /// How aggressive to cull memory. This only works for:
881  /// - ::HAPI_CACHE_COP2_COOK where:
882  /// 0 -> Never reduce inactive cache.
883  /// 1 -> Always reduce inactive cache.
884  /// - ::HAPI_CACHE_OBJ where:
885  /// 0 -> Never enforce the max memory limit.
886  /// 1 -> Always enforce the max memory limit.
887  /// - ::HAPI_CACHE_SOP where:
888  /// 0 -> When to Unload = Never
889  /// When to Limit Max Memory = Never
890  /// 1-2 -> When to Unload = Based on Flag
891  /// When to Limit Max Memory = Never
892  /// 3-4 -> When to Unload = Based on Flag
893  /// When to Limit Max Memory = Always
894  /// 5 -> When to Unload = Always
895  /// When to Limit Max Memory = Always
897 };
898 
900 
901 /// Type of sampling for heightfield
903 {
906 };
908 
909 /// Used with PDG functions
911 {
915 
917 };
919 
920 /// Used with PDG functions
922 {
923  /// An empty, undefined event. Should be ignored.
925 
926  /// Sent when a new work item is added by a node
928  /// Sent when a work item is deleted from a node
930  /// Sent when a work item's state changes
932 
933  /// Sent when a work item has a dependency added
935  /// Sent when a dependency is removed from a work item
937 
938  /// Sent from dynamic work items that generate from a cooked item
940  /// Sent when the parent item for a work item is deleted
942 
943  /// A node event that indicates that node is about to have all its work items cleared
945 
946  /// Sent when an error is issued by the node
948  /// Sent when an warning is issued by the node
950 
951  /// Sent for each node in the graph, when a cook completes
953 
954  /// A node event indicating that one more items in the node will be dirtied
956  /// A node event indicating that the node has finished dirtying items
958 
959  /// A event indicating that the entire graph is about to be dirtied
961 
962  /// A work item event that indicates the item has been selected in the TOPs UI
964 
965  /// Sent when a new node is created
967  /// Sent when a node was removed from the graph
969  /// Sent when a node was renamed
971  /// Sent when a node was connected to another node
973  /// Sent when a node is disconnected from another node
975  /// Sent when a node cooks for the first time
977 
978  /// Deprecated
980  /// Deprecated
982  /// Deprecated
984  /// Deprecated
986  /// Deprecated
988  /// Deprecated
990  /// Deprecated
992  /// Deprecated
994  /// Sent when an output file is added to a work item
996 
997  /// Deprecated
999  /// Sent for each node in the graph, when a cook starts
1001  /// Deprecated
1003  /// Deprecated
1005 
1006  /// Deprecated
1008  /// Deprecated
1010  /// A special enum that represents the OR of all event types
1012  /// A special enum that represents the OR of both the `CookError` and `CookWarning` events
1014 
1015  /// Sent when a new scheduler is added to the graph
1017  /// Sent when a scheduler is removed from the graph
1019  /// Deprecated
1021  /// Deprecated
1023 
1024  /// Sent when a node finishes cooking
1026  /// Sent when a node finished generating
1028 
1030 };
1032 
1033 /// Used with PDG functions
1035 {
1046 };
1048 
1049 /// Backwards compatibility for HAPI_PDG_WorkitemState
1051 
1053 {
1057 };
1059 
1061 {
1064 };
1066 
1067 /////////////////////////////////////////////////////////////////////////////
1068 // Main API Structs
1069 
1070 // GENERICS -----------------------------------------------------------------
1071 
1072 /// A Transform with Quaternion rotation
1074 {
1075  float position[ HAPI_POSITION_VECTOR_SIZE ];
1076  float rotationQuaternion[ HAPI_QUATERNION_VECTOR_SIZE ];
1077  float scale[ HAPI_SCALE_VECTOR_SIZE ];
1078  float shear[ HAPI_SHEAR_VECTOR_SIZE ];
1079 
1081 };
1083 
1084 /// A Transform with Euler rotation
1086 {
1087  float position[ HAPI_POSITION_VECTOR_SIZE ];
1088  float rotationEuler[ HAPI_EULER_VECTOR_SIZE ];
1089  float scale[ HAPI_SCALE_VECTOR_SIZE ];
1090  float shear[ HAPI_SHEAR_VECTOR_SIZE ];
1091 
1094 };
1096 
1097 // SESSIONS -----------------------------------------------------------------
1098 
1099 /// Identifies a session
1101 {
1102  /// The type of session determines the which implementation will be
1103  /// used to communicate with the Houdini Engine library.
1105 
1106  /// Some session types support multiple simultaneous sessions. This means
1107  /// that each session needs to have a unique identifier.
1108  HAPI_SessionId id;
1109 };
1111 
1112 /// Configurations for sessions
1114 {
1115  /// The number of subconnections in this session
1117 
1118  /// Specification for the port numbers
1120 
1121  /// Specifies a range of port numbers, [minPort, maxPort]
1122  int minPort;
1123  int maxPort;
1124 
1125  /// Specifies a list of port numbers
1127 
1128  // Must match the buffer type passed to the HARS executable through the
1129  // command line or ::HAPI_StartThriftSharedMemoryServer
1131 
1132  // Must match the buffer size passed to the HARS executable through the
1133  // command line or ::HAPI_StartThriftSharedMemoryServer. This is the size of
1134  // the shared memory buffer in megabytes (MB).
1136 };
1138 
1139 /// Options to configure a Thrift server being started from HARC.
1141 {
1142  /// Close the server automatically when all clients disconnect from it.
1144 
1145  /// Timeout in milliseconds for waiting on the server to
1146  /// signal that it's ready to serve. If the server fails
1147  /// to signal within this time interval, the start server call fails
1148  /// and the server process is terminated.
1149  float timeoutMs;
1150 
1151  // Specifies the maximum status verbosity that will be logged.
1153 
1154  // Only used when starting a Thrift shared memory server. This controls the
1155  // type of buffer that is used in the underlying communication protocol. A
1156  // fixed length buffer is faster but the data passed to any single HAPI API
1157  // call cannot exceed the total length of the buffer. A ring buffer is
1158  // slower but has no limitations on the size of the data.
1160 
1161  // Only used when starting a Thrift shared memory server. This variable
1162  // specifies the size in megabytes (MB) of the allocated shared memory
1163  // buffer.
1165 };
1167 
1168 // TIME ---------------------------------------------------------------------
1169 
1170 /// Data for global timeline, used with ::HAPI_SetTimelineOptions()
1172 {
1173  float fps;
1174 
1175  float startTime;
1176  float endTime;
1177 };
1179 
1180 // ASSETS -------------------------------------------------------------------
1181 
1182 /// Meta-data about an HDA, returned by ::HAPI_GetAssetInfo()
1184 {
1185  /// Use the node id to get the asset's parameters.
1186  /// See @ref HAPI_Nodes_Basics.
1187  HAPI_NodeId nodeId;
1188 
1189  /// The objectNodeId differs from the regular nodeId in that for
1190  /// geometry based assets (SOPs) it will be the node id of the dummy
1191  /// object (OBJ) node instead of the asset node. For object based assets
1192  /// the objectNodeId will equal the nodeId. The reason the distinction
1193  /// exists is because transforms are always stored on the object node
1194  /// but the asset parameters may not be on the asset node if the asset
1195  /// is a geometry asset so we need both.
1196  HAPI_NodeId objectNodeId;
1197 
1198  /// It's possible to instantiate an asset without cooking it.
1199  /// See @ref HAPI_Assets_Cooking.
1201 
1202  HAPI_StringHandle nameSH; /// Instance name (the label + a number).
1203  HAPI_StringHandle labelSH; /// This is what any end user should be shown.
1204  HAPI_StringHandle filePathSH; /// Path to the .otl library file.
1205  HAPI_StringHandle versionSH; /// User-defined asset version.
1206  HAPI_StringHandle fullOpNameSH; /// Full asset name and namespace.
1207  HAPI_StringHandle helpTextSH; /// Asset help marked-up text.
1208  HAPI_StringHandle helpURLSH; /// Asset help URL.
1209 
1210  int objectCount; /// See @ref HAPI_Objects.
1211  int handleCount; /// See @ref HAPI_Handles.
1212 
1213  /// Transform inputs exposed by the asset. For OBJ assets this is the
1214  /// number of transform inputs on the OBJ node. For SOP assets, this is
1215  /// the singular transform input on the dummy wrapper OBJ node.
1216  /// See @ref HAPI_AssetInputs.
1218 
1219  /// Geometry inputs exposed by the asset. For SOP assets this is
1220  /// the number of geometry inputs on the SOP node itself. OBJ assets
1221  /// will always have zero geometry inputs.
1222  /// See @ref HAPI_AssetInputs.
1224 
1225  /// Geometry outputs exposed by the asset. For SOP assets this is
1226  /// the number of geometry outputs on the SOP node itself. OBJ assets
1227  /// will always have zero geometry outputs.
1228  /// See @ref HAPI_AssetInputs.
1230 
1231  /// For incremental updates. Indicates whether any of the assets's
1232  /// objects have changed. Refreshed only during an asset cook.
1234 
1235  /// For incremental updates. Indicates whether any of the asset's
1236  /// materials have changed. Refreshed only during an asset cook.
1238 };
1240 
1241 /// Options which affect how nodes are cooked.
1243 {
1244  /// Normally, geos are split into parts in two different ways. First it
1245  /// is split by group and within each group it is split by primitive type.
1246  ///
1247  /// For example, if you have a geo with group1 covering half of the mesh
1248  /// and volume1 and group2 covering the other half of the mesh, all of
1249  /// curve1, and volume2 you will end up with 5 parts. First two parts
1250  /// will be for the half-mesh of group1 and volume1, and the last three
1251  /// will cover group2.
1252  ///
1253  /// This toggle lets you disable the splitting by group and just have
1254  /// the geo be split by primitive type alone. By default, this is true
1255  /// and therefore geos will be split by group and primitive type. If
1256  /// set to false, geos will only be split by primitive type.
1258  HAPI_StringHandle splitGroupSH;
1259 
1260  /// This toggle lets you enable the splitting by unique values
1261  /// of a specified attribute. By default, this is false and
1262  /// the geo be split as described above.
1263  /// as described above. If this is set to true, and splitGeosByGroup
1264  /// set to false, mesh geos will be split on attribute values
1265  /// The attribute name to split on must be created with HAPI_SetCustomString
1266  /// and then the splitAttrSH handle set on the struct.
1268  HAPI_StringHandle splitAttrSH;
1269 
1270  /// For meshes only, this is enforced by convexing the mesh. Use -1
1271  /// to avoid convexing at all and get some performance boost.
1273 
1274  /// For curves only.
1275  /// If this is set to true, then all curves will be refined to a linear
1276  /// curve and you can no longer access the original CVs. You can control
1277  /// the refinement detail via ::HAPI_CookOptions::curveRefineLOD.
1278  /// If it's false, the curve type (NURBS, Bezier etc) will be left as is.
1280 
1281  /// Controls the number of divisions per unit distance when refining
1282  /// a curve to linear. The default in Houdini is 8.0.
1284 
1285  /// If this option is turned on, then we will recursively clear the
1286  /// errors and warnings (and messages) of all nodes before performing
1287  /// the cook.
1289 
1290  /// Decide whether to recursively cook all templated geos or not.
1292 
1293  /// Decide whether to split points by vertex attributes. This takes
1294  /// all vertex attributes and tries to copy them to their respective
1295  /// points. If two vertices have any difference in their attribute values,
1296  /// the corresponding point is split into two points. This is repeated
1297  /// until all the vertex attributes have been copied to the points.
1298  ///
1299  /// With this option enabled, you can reduce the total number of vertices
1300  /// on a game engine side as sharing of attributes (like UVs) is optimized.
1301  /// To make full use of this feature, you have to think of Houdini points
1302  /// as game engine vertices (sharable). With this option OFF (or before
1303  /// this feature existed) you had to map Houdini vertices to game engine
1304  /// vertices, to make sure all attribute values are accounted for.
1306 
1307  /// Choose how you want the cook to handle packed primitives.
1308  /// The default is: ::HAPI_PACKEDPRIM_INSTANCING_MODE_DISABLED
1310 
1311  /// Choose which special part types should be handled. Unhandled special
1312  /// part types will just be refined to ::HAPI_PARTTYPE_MESH.
1315 
1316  /// If enabled, sets the ::HAPI_PartInfo::hasChanged member during the
1317  /// cook. If disabled, the member will always be true. Checking for
1318  /// part changes can be expensive, so there is a potential performance
1319  /// gain when disabled.
1321 
1322  /// This toggle lets you enable the caching of the mesh topology.
1323  /// By default, this is false. If this is set to true, cooking a mesh
1324  /// geometry will update only the topology if the number of points changed.
1325  /// Use this to get better performance on deforming meshes.
1327 
1328  /// If enabled, calls to ::HAPI_CookNode() on an OBJ node will cook the output
1329  /// nodes of any nested SOP nodes. If none exist or the option is disabled,
1330  /// HAPI will instead cook the display nodes of any nested SOP nodes.
1332 
1333  /// For internal use only. :)
1335 };
1337 
1338 // NODES --------------------------------------------------------------------
1339 
1340 /// Meta-data for a Houdini Node
1342 {
1343  HAPI_NodeId id;
1344  HAPI_NodeId parentId;
1345  HAPI_StringHandle nameSH;
1347 
1348  /// Always true unless the asset's definition has changed due to loading
1349  /// a duplicate asset definition and from another OTL asset library
1350  /// file OR deleting the OTL asset library file used by this node's asset.
1352 
1353  /// Total number of cooks of this node.
1355 
1356  /// Use this unique id to grab the OP_Node pointer for this node.
1357  /// If you're linking against the C++ HDK, include the OP_Node.h header
1358  /// and call OP_Node::lookupNode().
1360 
1361  /// This is the internal node path in the Houdini scene graph. This path
1362  /// is meant to be abstracted away for most client purposes but for
1363  /// advanced uses it can come in handy.
1364  HAPI_StringHandle internalNodePathSH;
1365 
1366  /// Total number of parameters this asset has exposed. Includes hidden
1367  /// parameters.
1368  /// See @ref HAPI_Parameters.
1370 
1371  /// Number of values. A single parameter may have more than one value so
1372  /// this number is more than or equal to ::HAPI_NodeInfo::parmCount.
1373  /// @{
1377  /// @}
1378 
1379  /// The total number of choices among all the combo box parameters.
1380  /// See @ref HAPI_Parameters_ChoiceLists.
1382 
1383  /// The number of child nodes. This is 0 for all nodes that are not
1384  /// node networks.
1386 
1387  /// The number of inputs this specific node has.
1389 
1390  /// The number of outputs this specific node has.
1392 
1393  /// Nodes created via scripts or via ::HAPI_CreateNode() will be have
1394  /// this set to true. Only such nodes can be deleted using
1395  /// ::HAPI_DeleteNode().
1397 
1398  /// Indicates if this node will change over time
1400 };
1402 
1403 // PARAMETERS ---------------------------------------------------------------
1404 
1405 ///
1406 /// Contains parameter information like name, label, type, and size.
1407 ///
1409 {
1410  /// The parent id points to the id of the parent parm
1411  /// of this parm. The parent parm is something like a folder.
1412  HAPI_ParmId id;
1413 
1414  /// Parameter id of the parent of this parameter.
1415  HAPI_ParmId parentId;
1416 
1417  /// Child index within its immediate parent parameter.
1419 
1420  /// The HAPI type of the parm
1422 
1423  /// The Houdini script-type of the parm
1425 
1426  /// Some parameter types require additional type information.
1427  /// - File path parameters will indicate what file extensions they
1428  /// expect in a space-separated list of wild-cards. This is set
1429  /// in the Operator Type Properties using the File Pattern
1430  /// parameter property.
1431  /// For example, for filtering by PNG and JPG only: "*.png *.jpg"
1432  HAPI_StringHandle typeInfoSH;
1433 
1434  /// For the majority of parameter types permission will not be applicable.
1435  /// For file path parameters these permissions will indicate how the
1436  /// asset plans to use the file: whether it will only read it, only write
1437  /// to it, or both. This is set in the Operator Type Properties using
1438  /// the Browse Mode parameter property.
1440 
1441  /// Number of tags on this paramter.
1443 
1444  /// Tuple size. For scalar parameters this value is 1, but for vector
1445  /// parameters this value can be greater. For example, a 3 vector would
1446  /// have a size of 3. For folders and folder lists, this value is the
1447  /// number of children they own.
1448  int size;
1449 
1450  /// Any ::HAPI_ParmType can be a choice list. If this is set to
1451  /// ::HAPI_CHOICELISTTYPE_NONE, than this parameter is NOT a choice list.
1452  /// Otherwise, the parameter is a choice list of the indicated type.
1453  /// See @ref HAPI_Parameters_ChoiceLists.
1455 
1456  /// Any ::HAPI_ParmType can be a choice list. If the parameter is a
1457  /// choice list, this tells you how many choices it currently has.
1458  /// Note that some menu parameters can have a dynamic number of choices
1459  /// so it is important that this count is re-checked after every cook.
1460  /// See @ref HAPI_Parameters_ChoiceLists.
1462 
1463  /// Note that folders are not real parameters in Houdini so they do not
1464  /// have names. The folder names given here are generated from the name
1465  /// of the folderlist (or switcher) parameter which is a parameter. The
1466  /// folderlist parameter simply defines how many of the "next" parameters
1467  /// belong to the first folder, how many of the parameters after that
1468  /// belong to the next folder, and so on. This means that folder names
1469  /// can change just by reordering the folders around so don't rely on
1470  /// them too much. The only guarantee here is that the folder names will
1471  /// be unique among all other parameter names.
1472  HAPI_StringHandle nameSH;
1473 
1474  /// The label string for the parameter
1475  HAPI_StringHandle labelSH;
1476 
1477  /// If this parameter is a multiparm instance than the
1478  /// ::HAPI_ParmInfo::templateNameSH will be the hash-templated parm name,
1479  /// containing #'s for the parts of the name that use the instance number.
1480  /// Compared to the ::HAPI_ParmInfo::nameSH, the ::HAPI_ParmInfo::nameSH
1481  /// will be the ::HAPI_ParmInfo::templateNameSH but with the #'s
1482  /// replaced by the instance number. For regular parms, the
1483  /// ::HAPI_ParmInfo::templateNameSH is identical to the
1484  /// ::HAPI_ParmInfo::nameSH.
1485  HAPI_StringHandle templateNameSH;
1486 
1487  /// The help string for this parameter
1488  HAPI_StringHandle helpSH;
1489 
1490  /// Whether min/max exists for the parameter values.
1491  /// @{
1496  /// @}
1497 
1498  /// Parameter value range, shared between int and float parameters.
1499  /// @{
1500  float min;
1501  float max;
1502  float UIMin;
1503  float UIMax;
1504  /// @}
1505 
1506  /// Whether this parm should be hidden from the user entirely. This is
1507  /// mostly used to expose parameters as asset meta-data but not allow the
1508  /// user to directly modify them.
1510 
1511  /// Whether this parm should appear enabled or disabled.
1513 
1514  /// If true, it means this parameter doesn't actually exist on the node
1515  /// in Houdini but was added by Houdini Engine as a spare parameter.
1516  /// This is just for your information. The behaviour of this parameter
1517  /// is not any different than a non-spare parameter.
1519 
1520  HAPI_Bool joinNext; /// Whether this parm should be on the same line as
1521  /// the next parm.
1522  HAPI_Bool labelNone; /// Whether the label should be displayed.
1523 
1524  /// The index to use to look into the values array in order to retrieve
1525  /// the actual value(s) of this parameter.
1526  /// @{
1531  /// @}
1532 
1533  /// If this is a ::HAPI_PARMTYPE_NODE, this tells you what node types
1534  /// this parameter accepts.
1536 
1537  /// The node input parameter could have another subtype filter specified,
1538  /// like "Object: Geometry Only". In this case, this value will specify
1539  /// that extra filter. If the filter demands a node that HAPI does not
1540  /// support, both this and ::HAPI_ParmInfo::inputNodeType will be set to
1541  /// NONE as such a node is not settable through HAPI.
1543 
1544  /// See @ref HAPI_Parameters_MultiParms.
1545  /// @{
1547 
1548  int instanceNum; /// The index of the instance in the multiparm.
1549  int instanceLength; /// The number of parms in a multiparm instance.
1550  int instanceCount; /// The number of instances in a multiparm.
1551 
1552  /// First instance's ::HAPI_ParmInfo::instanceNum. Either 0 or 1.
1554 
1556  /// @}
1557 
1558  /// Provides the raw condition string which is used to evaluate the
1559  /// the visibility of a parm
1560  HAPI_StringHandle visibilityConditionSH;
1561 
1562  /// Provides the raw condition string which is used to evalute whether
1563  /// a parm is enabled or disabled
1564  HAPI_StringHandle disabledConditionSH;
1565 
1566  /// Whether or not the "Use Menu Item Token As Value" checkbox was checked in a integer menu item.
1568 };
1570 
1571 /// Meta-data for a combo-box / choice parm
1573 {
1574  HAPI_ParmId parentParmId;
1575  HAPI_StringHandle labelSH;
1576 
1577  /// This evaluates to the value of the token associated with the label
1578  /// applies to string menus only.
1579  HAPI_StringHandle valueSH;
1580 };
1582 
1583 // HANDLES ------------------------------------------------------------------
1584 
1585 ///
1586 /// Contains handle information such as the type of handle
1587 /// (translate, rotate, scale, softxform ...etc) and the number of
1588 /// parameters the current handle is bound to.
1589 ///
1591 {
1592  HAPI_StringHandle nameSH;
1593  HAPI_StringHandle typeNameSH;
1594 
1596 };
1598 
1599 ///
1600 /// Contains binding information that maps the handle parameter to
1601 /// the asset parameter. The index is only used for int and float vector
1602 /// and colour parms.
1603 ///
1605 {
1606  HAPI_StringHandle handleParmNameSH;
1607  HAPI_StringHandle assetParmNameSH;
1608 
1609  HAPI_ParmId assetParmId;
1611 };
1613 
1614 // OBJECTS ------------------------------------------------------------------
1615 
1616 /// Meta-data for an OBJ Node
1618 {
1619  HAPI_StringHandle nameSH;
1620 
1621  /// @deprecated This member is no longer used
1622  HAPI_StringHandle objectInstancePathSH;
1623 
1624  /// For incremental updates. Indicates whether the object's transform
1625  /// has changed. Refreshed only during an asset cook.
1627 
1628  /// For incremental updates. Indicates whether any of the object's
1629  /// geometry nodes have changed. Refreshed only during an asset cook.
1631 
1632  /// Whether the object is hidden and should not be shown. Some objects
1633  /// should be hidden but still brought into the host environment, for
1634  /// example those used only for instancing.
1635  /// See @ref HAPI_Instancing.
1637 
1638  /// See @ref HAPI_Instancing.
1640 
1641  /// Determine if this object is being instanced. Normally, this implies
1642  /// that while this object may not be visible, it should still be
1643  /// brought into the host application because it is needed by an instancer.
1644  /// See @ref HAPI_Instancing.
1646 
1647  /// @deprecated No longer used. See @ref HAPI_Geos
1649 
1650  /// Use the node id to get the node's parameters.
1651  /// Using the HDK, you can also get the raw node C++ pointer for this
1652  /// object's internal node.
1653  /// See @ref HAPI_Nodes_Basics.
1654  HAPI_NodeId nodeId;
1655 
1656  /// If the object is an instancer, this variable gives the object id of
1657  /// the object that should be instanced.
1658  /// See @ref HAPI_Instancing.
1659  HAPI_NodeId objectToInstanceId;
1660 };
1662 
1663 // GEOMETRY -----------------------------------------------------------------
1664 
1665 /// Meta-data for a SOP Node
1667 {
1669  HAPI_StringHandle nameSH;
1670 
1671  /// Use the node id to get the node's parameters.
1672  /// Using the HDK, you can also get the raw node C++ pointer for this
1673  /// object's internal node.
1674  HAPI_NodeId nodeId;
1675 
1676  /// Whether the SOP node has been exposed by dragging it into the
1677  /// editable nodes section of the asset definition.
1679 
1680  /// Has the templated flag turned on which means "expose as read-only".
1682 
1683  /// Final Result (Display SOP).
1685 
1686  /// For incremental updates.
1688 
1689  /// @deprecated This variable is deprecated and should no longer be used.
1690  /// Materials are now separate from parts. They are maintained at the
1691  /// asset level so you only need to check if the material itself has
1692  /// changed via ::HAPI_MaterialInfo::hasChanged instead of the material
1693  /// on the part.
1695 
1696  /// Groups.
1697  /// @{
1701  /// @}
1702 
1703  /// Total number of parts this geometry contains.
1704  /// See @ref HAPI_Parts.
1706 };
1708 
1709 /// Meta-data describing a Geo Part
1711 {
1712  /// Id to identify this part relative to it's Geo
1713  HAPI_PartId id;
1714  /// String handle for the name of the part
1715  HAPI_StringHandle nameSH;
1717 
1720  /// Number of points. Note that this is NOT the number
1721  /// of "positions" as "points" may imply. If your
1722  /// geometry has 3 points then set this to 3 and not 3*3.
1724 
1725  int attributeCounts[ HAPI_ATTROWNER_MAX ];
1726 
1727  /// If this is true, don't display this part. Load its data but then
1728  /// instance it where the corresponding instancer part tells you to
1729  /// instance it.
1731 
1732  /// The number of parts that this instancer part is instancing.
1733  /// For example, if we're instancing a curve and a box, they would come
1734  /// across as two parts, hence this count would be two.
1735  /// Call ::HAPI_GetInstancedPartIds() to get the list of ::HAPI_PartId.
1737 
1738  /// The number of instances that this instancer part is instancing.
1739  /// Using the same example as with ::HAPI_PartInfo::instancedPartCount,
1740  /// if I'm instancing the merge of a curve and a box 5 times, this count
1741  /// would be 5. To be clear, all instanced parts are instanced the same
1742  /// number of times and with the same transform for each instance.
1743  /// Call ::HAPI_GetInstancerPartTransforms() to get the transform of
1744  /// each instance.
1746 
1747  /// If this is false, the underlying attribute data appear to match that of
1748  /// the previous cook. In this case you may be able to re-used marshaled
1749  /// data from the previous cook.
1751 };
1753 
1754 /// Meta-data describing an attribute
1755 /// See @ref HAPI_Attributes.
1757 {
1759 
1762 
1763  /// When converting from the Houdini native GA geometry format to the
1764  /// GT geometry format HAPI uses, some attributes might change owners.
1765  /// For example, in Houdini GA curves can have points shared by
1766  /// vertices but the GT format only supports curve vertices
1767  /// (no points). This means that if you had point attributes on a curve
1768  /// in Houdini, when it comes out of HAPI those point attributes will now
1769  /// be vertex attributes. In this case, the ::HAPI_AttributeInfo::owner
1770  /// will be set to ::HAPI_ATTROWNER_VERTEX but the
1771  /// ::HAPI_AttributeInfo::originalOwner will be ::HAPI_ATTROWNER_POINT.
1773 
1774  /// Number of attributes. This count will match the number of values
1775  /// given the owner. For example, if the owner is ::HAPI_ATTROWNER_VERTEX
1776  /// this count will be the same as the ::HAPI_PartInfo::vertexCount.
1777  /// To be clear, this is not the number of values in the attribute, rather
1778  /// it is the number of attributes. If your geometry has three 3D points
1779  /// then this count will be 3 (not 3*3) while the
1780  /// ::HAPI_AttributeInfo::tupleSize will be 3.
1781  int count;
1782 
1783  /// Number of values per attribute.
1784  /// Note that this is NOT the memory size of the attribute. It is the
1785  /// number of values per attributes. Multiplying this by the
1786  /// size of the ::HAPI_AttributeInfo::storage will give you the memory
1787  /// size per attribute.
1789 
1790  /// Total number of elements for an array attribute.
1791  /// An array attribute can be thought of as a 2 dimensional array where
1792  /// the 2nd dimension can vary in size for each element in the 1st
1793  /// dimension. Therefore this returns the total number of values in
1794  /// the entire array.
1795  /// This should be used to determine the total storage
1796  /// size needed by multiplying with ::HAPI_AttributeInfo::storage.
1797  /// Note that this will be 0 for a non-array attribute.
1799 
1800  /// Attribute type info
1801  /// This is used to help identify the type of data stored in an attribute.
1802  /// Using the type is recommended over using just an attribute's name to identify
1803  /// its purpose.
1805 };
1807 
1808 // MATERIALS ----------------------------------------------------------------
1809 
1811 {
1812  /// This is the HAPI node id for the SHOP node this material is attached
1813  /// to. Use it to get access to the parameters (which contain the
1814  /// texture paths).
1815  /// IMPORTANT: When the ::HAPI_MaterialInfo::hasChanged is true this
1816  /// @p nodeId could have changed. Do not assume ::HAPI_MaterialInfo::nodeId
1817  /// will never change for a specific material.
1818  HAPI_NodeId nodeId;
1819 
1821 
1823 };
1825 
1826 /// Describes an image format, used with ::HAPI_GetSupportedImageFileFormats()
1828 {
1829  HAPI_StringHandle nameSH;
1830  HAPI_StringHandle descriptionSH;
1831  HAPI_StringHandle defaultExtensionSH;
1832 };
1834 
1835 /// Data for an image, used with ::HAPI_GetImageInfo() and ::HAPI_SetImageInfo()
1837 {
1838  /// Unlike the other members of this struct changing imageFileFormatNameSH
1839  /// and giving this struct back to ::HAPI_SetImageInfo() nothing will happen.
1840  /// Use this member variable to derive which image file format will be used
1841  /// by the ::HAPI_ExtractImageToFile() and ::HAPI_ExtractImageToMemory()
1842  /// functions if called with image_file_format_name set to NULL. This way,
1843  /// you can decide whether to ask for a file format conversion (slower) or
1844  /// not (faster).
1845  /// (Read-only)
1846  HAPI_StringHandle imageFileFormatNameSH;
1847 
1848  int xRes;
1849  int yRes;
1850 
1852 
1853  HAPI_Bool interleaved; /// ex: true = RGBRGBRGB, false = RRRGGGBBB
1855 
1856  /// Adjust the gamma of the image. For anything less than
1857  /// ::HAPI_IMAGE_DATA_INT16, you probably want to leave this as 2.2.
1858  double gamma;
1859 };
1861 
1862 // ANIMATION ----------------------------------------------------------------
1863 
1864 /// Data for a single Key Frame
1866 {
1867  float time;
1868  float value;
1869  float inTangent;
1870  float outTangent;
1871 };
1873 
1874 // VOLUMES ------------------------------------------------------------------
1875 
1876 ///
1877 /// This represents a volume primitive but does not contain the actual voxel
1878 /// values, which can be retrieved on a per-tile basis.
1879 ///
1880 /// See @ref HAPI_Volumes.
1881 ///
1883 {
1884  HAPI_StringHandle nameSH;
1885 
1887 
1888  /// Each voxel is identified with an index. The indices will range
1889  /// between:
1890  /// [ ( minX, minY, minZ ), ( minX+xLength, minY+yLength, minZ+zLength ) )
1891  /// @{
1892  int xLength;
1893  int yLength;
1894  int zLength;
1895  int minX;
1896  int minY;
1897  int minZ;
1898  /// @}
1899 
1900  /// Number of values per voxel.
1901  /// The tuple size field is 1 for scalars and 3 for vector data.
1903 
1904  /// Can be either ::HAPI_STORAGETYPE_INT or ::HAPI_STORAGETYPE_FLOAT.
1906 
1907  /// The dimensions of each tile.
1908  /// This can be 8 or 16, denoting an 8x8x8 or 16x16x16 tiles.
1910 
1911  /// The transform of the volume with respect to the lengths.
1912  /// The volume may be positioned anywhere in space.
1914 
1915  /// Denotes special situations where the volume tiles are not perfect
1916  /// cubes, but are tapered instead.
1918 
1919  /// If there is taper involved, denotes the amount of taper involved.
1920  /// @{
1921  float xTaper;
1922  float yTaper;
1923  /// @}
1924 };
1926 
1927 ///
1928 /// A HAPI_VolumeTileInfo represents an cube subarray of the volume.
1929 /// The size of each dimension is ::HAPI_VolumeInfo::tileSize
1930 /// bbox [(minX, minY, minZ), (minX+tileSize, minY+tileSize, minZ+tileSize))
1931 ///
1933 {
1934  int minX;
1935  int minY;
1936  int minZ;
1938 };
1940 
1941 ///
1942 /// Describes the visual settings of a volume.
1943 ///
1945 {
1947  float iso;
1948  float density;
1949 };
1951 
1952 // CURVES -------------------------------------------------------------------
1953 
1954 ///
1955 /// Represents the meta-data associated with a curve mesh (a number
1956 /// of curves of the same type).
1958 {
1960 
1961  /// The number of curves contained in this curve mesh.
1963 
1964  /// The number of control vertices (CVs) for all curves.
1966 
1967  /// The number of knots for all curves.
1969 
1970  /// Whether the curves in this curve mesh are periodic (closed by appending a new point)
1972 
1973  /// Whether the curves in this curve mesh are rational.
1975 
1976  /// Order of 1 is invalid. 0 means there is a varying order.
1977  int order;
1978 
1979  /// Whether the curve has knots.
1981 
1982  /// Similar to isPeriodic, but creates a polygon instead of a separate point
1984 };
1986 
1987 // Curve info dealing specifically with input curves
1989 {
1990  /// The desired curve type of the curve
1991  /// Note that this is NOT necessarily equal to the value in HAPI_CurveInfo
1992  /// in the case of curve refinement
1994 
1995  /// The desired order for your input curve
1996  /// This is your desired order, which may differ from HAPI_CurveInfo
1997  /// as it will do range checks and adjust the actual order accordingly
1998  int order;
1999 
2000  /// Whether or not the curve is closed
2001  /// May differ from HAPI_CurveInfo::isPeriodic depending on the curveType
2002  /// (e.g. A NURBs curve is never technically closed according to HAPI_CurveInfo)
2004 
2005  /// Whether or not to reverse the curve input
2007 
2008  // Input method type (CVs or Brekapoints)
2010 
2011  // Parameterization - Only used when inputMethod is BREAKPOINTS
2013 
2014 };
2016 
2017 // BASIC PRIMITIVES ---------------------------------------------------------
2018 
2019 /// Data for a Box Part
2021 {
2022  float center[ HAPI_POSITION_VECTOR_SIZE ];
2023  float size[ HAPI_SCALE_VECTOR_SIZE ];
2024  float rotation[ HAPI_EULER_VECTOR_SIZE ];
2025 };
2027 
2028 /// Data for a Sphere Part
2030 {
2031  float center[ HAPI_POSITION_VECTOR_SIZE ];
2032  float radius;
2033 };
2035 
2036 // PDG Structs --------------------------------------------------------------
2037 
2038 /// Data associated with a PDG Event
2040 {
2041  /// id of related node.
2042  HAPI_NodeId nodeId;
2043 
2044  /// id of related work item.
2045  HAPI_PDG_WorkItemId workItemId;
2046 
2047  /// id of related work item dependency.
2048  HAPI_PDG_WorkItemId dependencyId;
2049 
2050  /// ::HAPI_PDG_WorkItemState value of current state for state change.
2052 
2053  /// ::HAPI_PDG_WorkItemState value of last state for state change.
2055 
2056  /// ::HAPI_PDG_EventType event type.
2058 
2059  /// String handle of the event message (> 0 if there is a message).
2060  HAPI_StringHandle msgSH;
2061 };
2063 
2064 /// Info for a PDG work item
2066 {
2067  /// The work item's index
2068  int index;
2069 
2070  /// The number of output files reported by the work item.
2072 
2073  /// Name of the work item
2074  HAPI_StringHandle nameSH;
2075 };
2077 
2078 /// Backwards compatibility for HAPI_PDG_WorkitemInfo
2080 
2081 /// Data for a PDG output file
2083 {
2084  /// The file path of the output.
2086 
2087  /// The file tag of the output.
2088  int tagSH;
2089 
2090  /// Hash of the output file. Properties such as the file path and
2091  /// modification time of the file are typical inputs to the hash function,
2092  /// but this will vary based on the node that is producing the output file.
2093  HAPI_Int64 hash;
2094 };
2096 
2097 /// Backwards compatibility for HAPI_PDG_WorkitemResultInfo
2099 
2100 // SESSIONSYNC --------------------------------------------------------------
2101 
2102 ///
2103 /// Contains the information for synchronizing viewport between Houdini
2104 /// and other applications. When SessionSync is enabled, Houdini will
2105 /// update this struct with its viewport state. It will also update
2106 /// its own viewport if this struct has changed.
2107 /// The data stored is in Houdini's right-handed Y-up coordinate system.
2108 ///
2110 {
2111  /// The world position of the viewport camera's pivot.
2112  float position[ HAPI_POSITION_VECTOR_SIZE ];
2113 
2114  /// The direction of the viewport camera stored as a quaternion.
2115  float rotationQuaternion[ HAPI_QUATERNION_VECTOR_SIZE ];
2116 
2117  /// The offset from the pivot to the viewport camera's
2118  /// actual world position.
2119  float offset;
2120 };
2122 
2123 ///
2124 /// Contains the information for synchronizing general SessionSync
2125 /// state between Houdini and other applications. When SessionSync
2126 /// is enabled, Houdini will update this struct with its state.
2127 /// It will also update its internal state if this struct has
2128 /// changed.
2129 ///
2131 {
2132  /// Specifies whether Houdini's current time is used for Houdini Engine
2133  /// cooks. This is automatically enabled in SessionSync where
2134  /// Houdini's viewport forces cooks to use Houdini's current time.
2135  /// This is disabled in non-SessionSync mode, but can be toggled to
2136  /// override default behaviour.
2138 
2139  /// Specifies whether viewport synchronization is enabled. If enabled,
2140  /// in SessionSync, Houdini will update its own viewport using
2141  /// ::HAPI_Viewport.
2143 };
2145 
2146 /// Configuration options for Houdini's compositing context
2148 {
2149  /// Specifies the maximum allowed width of an image in the compositor
2151 
2152  /// Specifies the maximum allowed height of an image in the compositor
2154 };
2156 
2157 #endif // __HAPI_COMMON_h__
HAPI_License
Definition: HAPI_Common.h:191
HAPI_NodeId objectNodeId
Definition: HAPI_Common.h:1196
"vector", "vector3"
Definition: HAPI_Common.h:424
#define HAPI_QUATERNION_VECTOR_SIZE
Definition: HAPI_Common.h:20
Min cache memory limit in MB.
Definition: HAPI_Common.h:877
A event indicating that the entire graph is about to be dirtied.
Definition: HAPI_Common.h:960
HAPI_StringHandle disabledConditionSH
Definition: HAPI_Common.h:1564
Sent when a dependency is removed from a work item.
Definition: HAPI_Common.h:936
HAPI_StringHandle nameSH
Definition: HAPI_Common.h:1669
Sent when an output file is added to a work item.
Definition: HAPI_Common.h:995
HAPI_StringHandle nameSH
Definition: HAPI_Common.h:1472
int maximumResolutionX
Specifies the maximum allowed width of an image in the compositor.
Definition: HAPI_Common.h:2150
HAPI_NodeId nodeId
id of related node.
Definition: HAPI_Common.h:2042
Data for an image, used with HAPI_GetImageInfo() and HAPI_SetImageInfo()
Definition: HAPI_Common.h:1836
HAPI_StringHandle labelSH
Instance name (the label + a number).
Definition: HAPI_Common.h:1203
HAPI_StringHandle nameSH
String handle for the name of the part.
Definition: HAPI_Common.h:1715
HAPI_Bool isInstancer
See Instancing.
Definition: HAPI_Common.h:1639
HAPI_VolumeVisualType
Definition: HAPI_Common.h:613
Sent for each node in the graph, when a cook completes.
Definition: HAPI_Common.h:952
HAPI_Bool reverse
Whether or not to reverse the curve input.
Definition: HAPI_Common.h:2006
Sent when an error is issued by the node.
Definition: HAPI_Common.h:947
HAPI_ImageDataFormat dataFormat
Definition: HAPI_Common.h:1851
int parmStringValueCount
Definition: HAPI_Common.h:1376
HAPI_Bool clearErrorsAndWarnings
Definition: HAPI_Common.h:1288
Texture coordinate.
Definition: HAPI_Common.h:683
Recursive Flag.
Definition: HAPI_Common.h:526
Recursive Flag.
Definition: HAPI_Common.h:524
HAPI_JobStatus
Definition: HAPI_Common.h:230
A work item event that indicates the item has been selected in the TOPs UI.
Definition: HAPI_Common.h:963
HAPI_ChoiceListType choiceListType
Definition: HAPI_Common.h:1454
int HAPI_NodeTypeBits
Definition: HAPI_Common.h:514
HAPI_PDG_WorkItemId HAPI_PDG_WorkitemId
Backwards compatibility for HAPI_PDG_WorkitemId.
Definition: HAPI_Common.h:179
int16_t HAPI_Int16
Definition: HAPI_Common.h:142
Data for a PDG output file.
Definition: HAPI_Common.h:2082
HAPI_StringHandle nameSH
Definition: HAPI_Common.h:1619
Sent when a node finished generating.
Definition: HAPI_Common.h:1027
HAPI_NodeId objectToInstanceId
Definition: HAPI_Common.h:1659
HAPI_PDG_WorkItemId dependencyId
id of related work item dependency.
Definition: HAPI_Common.h:2048
HAPI_Bool refineCurveToLinear
Definition: HAPI_Common.h:1279
HAPI_StatusVerbosity verbosity
Definition: HAPI_Common.h:1152
Used for Results. Equivalent to HAPI_STATUSVERBOSITY_1.
Definition: HAPI_Common.h:224
HAPI_ParmId id
Definition: HAPI_Common.h:1412
int HAPI_PDG_WorkItemId
Use this with PDG functions.
Definition: HAPI_Common.h:176
Just the presets binary blob.
Definition: HAPI_Common.h:492
int intValuesIndex
Whether the label should be displayed.
Definition: HAPI_Common.h:1527
"dir", "direction"
Definition: HAPI_Common.h:433
HAPI_Bool isEditable
Definition: HAPI_Common.h:1678
int HAPI_PDG_GraphContextId
Use this with PDG functions.
Definition: HAPI_Common.h:182
#define HAPI_POSITION_VECTOR_SIZE
Definition: HAPI_Common.h:16
HAPI_RampType rampType
Definition: HAPI_Common.h:1555
int floatValuesIndex
Whether the label should be displayed.
Definition: HAPI_Common.h:1528
HAPI_PackedPrimInstancingMode packedPrimInstancingMode
Definition: HAPI_Common.h:1309
Parametric interval.
Definition: HAPI_Common.h:675
HAPI_SessionEnvIntType
Definition: HAPI_Common.h:857
"toggle", "embed"
Definition: HAPI_Common.h:420
HAPI_StringHandle nameSH
Definition: HAPI_Common.h:1345
#define HAPI_API
Definition: HAPI_API.h:79
OBJ Node Specific Flags.
Definition: HAPI_Common.h:534
HAPI_NodeFlags
Definition: HAPI_Common.h:519
HAPI_GeoType
Definition: HAPI_Common.h:688
A special enum that represents the OR of all event types.
Definition: HAPI_Common.h:1011
int instanceCount
The number of parms in a multiparm instance.
Definition: HAPI_Common.h:1550
HAPI_StringHandle visibilityConditionSH
Definition: HAPI_Common.h:1560
HAPI_Bool hasEverCooked
Definition: HAPI_Common.h:1200
int eventType
HAPI_PDG_EventType event type.
Definition: HAPI_Common.h:2057
HAPI_Bool haveMaterialsChanged
Definition: HAPI_Common.h:1237
HAPI_NodeType inputNodeType
Definition: HAPI_Common.h:1535
HAPI_StringHandle typeNameSH
Definition: HAPI_Common.h:1593
HAPI_Bool isPeriodic
Whether the curves in this curve mesh are periodic (closed by appending a new point) ...
Definition: HAPI_Common.h:1971
HAPI_RSTOrder
Definition: HAPI_Common.h:762
int parmFloatValueCount
Definition: HAPI_Common.h:1375
"intvector", "intvector3"
Definition: HAPI_Common.h:428
HAPI_CurveType
Definition: HAPI_Common.h:575
HAPI_PDG_State
Used with PDG functions.
Definition: HAPI_Common.h:910
HAPI_AttributeOwner owner
Definition: HAPI_Common.h:1760
HAPI_RSTOrder rstOrder
Definition: HAPI_Common.h:1080
Sent when a work item has a dependency added.
Definition: HAPI_Common.h:934
Single Channel.
Definition: HAPI_Common.h:806
HAPI_NodeId nodeId
Definition: HAPI_Common.h:1674
int uniqueHoudiniNodeId
Definition: HAPI_Common.h:1359
HAPI_NodeId nodeId
Definition: HAPI_Common.h:1818
Sent when a node cooks for the first time.
Definition: HAPI_Common.h:976
int HAPI_HIPFileId
Definition: HAPI_Common.h:186
HAPI_ImageDataFormat
Definition: HAPI_Common.h:788
int handleCount
See Objects.
Definition: HAPI_Common.h:1211
Sent when a new node is created.
Definition: HAPI_Common.h:966
HAPI_PartType
Definition: HAPI_Common.h:712
int currentState
HAPI_PDG_WorkItemState value of current state for state change.
Definition: HAPI_Common.h:2051
HAPI_EnvIntType
Definition: HAPI_Common.h:824
HAPI_Bool isRational
Whether the curves in this curve mesh are rational.
Definition: HAPI_Common.h:1974
HAPI_Bool isValid
Definition: HAPI_Common.h:1351
HAPI_RSTOrder rstOrder
Definition: HAPI_Common.h:1093
int choiceIndex
Whether the label should be displayed.
Definition: HAPI_Common.h:1530
Sent when the parent item for a work item is deleted.
Definition: HAPI_Common.h:941
HAPI_PackedPrimInstancingMode
Definition: HAPI_Common.h:305
HAPI_StringHandle labelSH
The label string for the parameter.
Definition: HAPI_Common.h:1475
True if it actually has a maximum size.
Definition: HAPI_Common.h:878
HAPI_Permissions
Definition: HAPI_Common.h:315
Sent when a node is disconnected from another node.
Definition: HAPI_Common.h:974
Info for a PDG work item.
Definition: HAPI_Common.h:2065
#define HAPI_SHEAR_VECTOR_SIZE
Definition: HAPI_Common.h:18
Used for Results. Equivalent to HAPI_STATUSVERBOSITY_2.
Definition: HAPI_Common.h:220
HAPI_Bool cookTemplatedGeos
Decide whether to recursively cook all templated geos or not.
Definition: HAPI_Common.h:1291
HAPI_StringHandle helpSH
The help string for this parameter.
Definition: HAPI_Common.h:1488
HAPI_VolumeVisualType type
Definition: HAPI_Common.h:1946
3x3 Bounding box
Definition: HAPI_Common.h:681
HAPI_Bool autoClose
Close the server automatically when all clients disconnect from it.
Definition: HAPI_Common.h:1143
HAPI_ThriftSharedMemoryBufferType
Definition: HAPI_Common.h:1060
HAPI_StringHandle templateNameSH
Definition: HAPI_Common.h:1485
Meta-data about an HDA, returned by HAPI_GetAssetInfo()
Definition: HAPI_Common.h:1183
HAPI_AttributeOwner
Definition: HAPI_Common.h:564
int stringValuesIndex
Whether the label should be displayed.
Definition: HAPI_Common.h:1529
HAPI_InputCurveParameterization
Definition: HAPI_Common.h:594
HAPI_StringHandle fullOpNameSH
User-defined asset version.
Definition: HAPI_Common.h:1206
Only some objects failed.
Definition: HAPI_Common.h:294
HAPI_ErrorCode
Definition: HAPI_Common.h:268
HAPI_StringHandle nameSH
Definition: HAPI_Common.h:1829
HAPI_Bool createdPostAssetLoad
Definition: HAPI_Common.h:1396
HAPI_Bool splitGeosByAttribute
Definition: HAPI_Common.h:1267
HAPI_InputCurveParameterization breakpointParameterization
Definition: HAPI_Common.h:2012
Meta-data for an OBJ Node.
Definition: HAPI_Common.h:1617
HAPI_NodeType
Definition: HAPI_Common.h:499
HAPI_CurveType curveType
Definition: HAPI_Common.h:1959
int knotCount
The number of knots for all curves.
Definition: HAPI_Common.h:1968
HAPI_Bool hasUIMax
Definition: HAPI_Common.h:1495
Sent when a work item is deleted from a node.
Definition: HAPI_Common.h:929
HAPI_StringHandle handleParmNameSH
Definition: HAPI_Common.h:1606
int HAPI_StringHandle
Definition: HAPI_Common.h:160
HAPI_StatusVerbosity
Definition: HAPI_Common.h:213
Sent when a node finishes cooking.
Definition: HAPI_Common.h:1025
HAPI_AttributeOwner originalOwner
Definition: HAPI_Common.h:1772
Used for Results. Equivalent to HAPI_STATUSVERBOSITY_0.
Definition: HAPI_Common.h:222
HAPI_ThriftSharedMemoryBufferType sharedMemoryBufferType
Definition: HAPI_Common.h:1130
int minPort
Specifies a range of port numbers, [minPort, maxPort].
Definition: HAPI_Common.h:1122
Options to configure a Thrift server being started from HARC.
Definition: HAPI_Common.h:1140
Total number of supported parameter types.
Definition: HAPI_Common.h:379
HAPI_ChoiceListType
Definition: HAPI_Common.h:473
HAPI_Bool hasChanged
Definition: HAPI_Common.h:1750
HAPI_Bool isInstanced
Definition: HAPI_Common.h:1730
Everything cook successfully without errors.
Definition: HAPI_Common.h:290
HAPI_Bool spare
Definition: HAPI_Common.h:1518
Menu Only, Single Selection.
Definition: HAPI_Common.h:478
int index
The work item's index.
Definition: HAPI_Common.h:2068
HAPI_XYZOrder rotationOrder
Definition: HAPI_Common.h:1092
int curveCount
The number of curves contained in this curve mesh.
Definition: HAPI_Common.h:1962
HAPI_Bool cacheMeshTopology
Definition: HAPI_Common.h:1326
HAPI_PrmScriptType
Definition: HAPI_Common.h:408
A node event indicating that the node has finished dirtying items.
Definition: HAPI_Common.h:957
HAPI_Bool hasKnots
Whether the curve has knots.
Definition: HAPI_Common.h:1980
HAPI_STATIC_ASSERT(sizeof(HAPI_UInt8)==1, unsupported_size_of_uint8)
HAPI_XYZOrder
Definition: HAPI_Common.h:775
HAPI_CurveType curveType
Definition: HAPI_Common.h:1993
Data associated with a PDG Event.
Definition: HAPI_Common.h:2039
HAPI_StringHandle nameSH
Definition: HAPI_Common.h:1592
int HAPI_ParmId
Definition: HAPI_Common.h:169
int tagSH
The file tag of the output.
Definition: HAPI_Common.h:2088
HAPI_ParmId parentId
Parameter id of the parent of this parameter.
Definition: HAPI_Common.h:1415
Meta-data describing a Geo Part.
Definition: HAPI_Common.h:1710
int HAPI_ErrorCodeBits
Definition: HAPI_Common.h:274
HAPI_AttributeTypeInfo typeInfo
Definition: HAPI_Common.h:1804
int order
Order of 1 is invalid. 0 means there is a varying order.
Definition: HAPI_Common.h:1977
int instancedPartCount
Definition: HAPI_Common.h:1736
int tagCount
Number of tags on this paramter.
Definition: HAPI_Common.h:1442
int transformInputCount
See Handles.
Definition: HAPI_Common.h:1217
int outputCount
The number of outputs this specific node has.
Definition: HAPI_Common.h:1391
HAPI_TCP_PortType portType
Specification for the port numbers.
Definition: HAPI_Common.h:1119
HAPI_Bool handleSpherePartTypes
Definition: HAPI_Common.h:1314
HAPI_PDG_WorkItemState
Used with PDG functions.
Definition: HAPI_Common.h:1034
int instanceStartOffset
The number of instances in a multiparm.
Definition: HAPI_Common.h:1553
int childIndex
Child index within its immediate parent parameter.
Definition: HAPI_Common.h:1418
HAPI_NodeId id
Definition: HAPI_Common.h:1343
HAPI_ImagePacking
Definition: HAPI_Common.h:802
Meta-data for a Houdini Node.
Definition: HAPI_Common.h:1341
int connectionCount
The number of subconnections in this session.
Definition: HAPI_Common.h:1116
HAPI_Transform transform
Definition: HAPI_Common.h:1913
HAPI_PDG_EventType
Used with PDG functions.
Definition: HAPI_Common.h:921
HAPI_SessionType
Definition: HAPI_Common.h:276
HAPI_StorageType storage
Definition: HAPI_Common.h:1761
Presets blob within an .idx file format.
Definition: HAPI_Common.h:494
int instanceLength
The index of the instance in the multiparm.
Definition: HAPI_Common.h:1549
int lastState
HAPI_PDG_WorkItemState value of last state for state change.
Definition: HAPI_Common.h:2054
HAPI_Permissions permissions
Definition: HAPI_Common.h:1439
Configuration options for Houdini's compositing context.
Definition: HAPI_Common.h:2147
HAPI_VolumeType
Definition: HAPI_Common.h:604
HAPI_ParmType type
The HAPI type of the parm.
Definition: HAPI_Common.h:1421
HAPI_Int64 sharedMemoryBufferSize
Definition: HAPI_Common.h:1135
License Type. See HAPI_License.
Definition: HAPI_Common.h:862
HAPI_StringHandle descriptionSH
Definition: HAPI_Common.h:1830
HAPI_HeightFieldSampling
Type of sampling for heightfield.
Definition: HAPI_Common.h:902
Field + Multiple Selection Menu.
Definition: HAPI_Common.h:484
HAPI_ImagePacking packing
ex: true = RGBRGBRGB, false = RRRGGGBBB
Definition: HAPI_Common.h:1854
HAPI_Int64 HAPI_SessionId
Has to be 64-bit.
Definition: HAPI_Common.h:156
#define HAPI_SCALE_VECTOR_SIZE
Definition: HAPI_Common.h:17
HAPI_Bool labelNone
the next parm.
Definition: HAPI_Common.h:1522
HAPI_GeoType type
Definition: HAPI_Common.h:1668
HAPI_SessionId id
Definition: HAPI_Common.h:1108
int HAPI_ProcessId
Definition: HAPI_Common.h:152
HAPI_RampType
Definition: HAPI_Common.h:325
Configurations for sessions.
Definition: HAPI_Common.h:1113
Options which affect how nodes are cooked.
Definition: HAPI_Common.h:1242
HAPI_ParmType
Definition: HAPI_Common.h:341
Homogeneous position.
Definition: HAPI_Common.h:661
HAPI_Bool useMenuItemTokenAsValue
Whether or not the "Use Menu Item Token As Value" checkbox was checked in a integer menu item...
Definition: HAPI_Common.h:1567
HAPI_CurveOrders
Definition: HAPI_Common.h:734
HAPI_Bool invisible
Definition: HAPI_Common.h:1509
HAPI_Bool joinNext
Definition: HAPI_Common.h:1520
A node event that indicates that node is about to have all its work items cleared.
Definition: HAPI_Common.h:944
HAPI_StringHandle splitAttrSH
Definition: HAPI_Common.h:1268
HAPI_Bool hasChanged
Definition: HAPI_Common.h:1822
Sent when a new scheduler is added to the graph.
Definition: HAPI_Common.h:1016
HAPI_PartType type
Definition: HAPI_Common.h:1716
#define HAPI_MAX_NUM_CONNECTIONS
Definition: HAPI_Common.h:31
HAPI_StringHandle valueSH
Definition: HAPI_Common.h:1579
Identifies a session.
Definition: HAPI_Common.h:1100
HAPI_Bool haveGeosChanged
Definition: HAPI_Common.h:1630
HAPI_StringHandle versionSH
Path to the .otl library file.
Definition: HAPI_Common.h:1205
HAPI_StorageType
Definition: HAPI_Common.h:625
HAPI_Bool hasMax
Definition: HAPI_Common.h:1493
HAPI_NodeId nodeId
Definition: HAPI_Common.h:1187
HAPI_ThriftSharedMemoryBufferType sharedMemoryBufferType
Definition: HAPI_Common.h:1159
HAPI_StringHandle defaultExtensionSH
Definition: HAPI_Common.h:1831
int maximumResolutionY
Specifies the maximum allowed height of an image in the compositor.
Definition: HAPI_Common.h:2153
Sent when a node was renamed.
Definition: HAPI_Common.h:970
HAPI_StringHandle assetParmNameSH
Definition: HAPI_Common.h:1607
Meta-data for a SOP Node.
Definition: HAPI_Common.h:1666
HAPI_Bool isDisplayGeo
Final Result (Display SOP).
Definition: HAPI_Common.h:1684
"Private" (hidden)
Definition: HAPI_Common.h:677
A Transform with Euler rotation.
Definition: HAPI_Common.h:1085
HAPI_Bool isTimeDependent
Indicates if this node will change over time.
Definition: HAPI_Common.h:1399
Sent from dynamic work items that generate from a cooked item.
Definition: HAPI_Common.h:939
HAPI_Bool hasGeoChanged
For incremental updates.
Definition: HAPI_Common.h:1687
Sent when a work item's state changes.
Definition: HAPI_Common.h:931
int vertexCount
The number of control vertices (CVs) for all curves.
Definition: HAPI_Common.h:1965
HAPI_StringHandle imageFileFormatNameSH
Definition: HAPI_Common.h:1846
int64_t HAPI_Int64
Definition: HAPI_Common.h:144
Data for global timeline, used with HAPI_SetTimelineOptions()
Definition: HAPI_Common.h:1171
HAPI_Bool hasMaterialChanged
Definition: HAPI_Common.h:1694
A node event indicating that one more items in the node will be dirtied.
Definition: HAPI_Common.h:955
HAPI_NodeId parentId
Definition: HAPI_Common.h:1344
Sent when a new work item is added by a node.
Definition: HAPI_Common.h:927
True if it actually has a minimum size.
Definition: HAPI_Common.h:876
RGBA Reversed.
Definition: HAPI_Common.h:811
HAPI_Bool isTemplated
Has the templated flag turned on which means "expose as read-only".
Definition: HAPI_Common.h:1681
Looks for Guide Geometry.
Definition: HAPI_Common.h:543
int totalCookCount
Total number of cooks of this node.
Definition: HAPI_Common.h:1354
HAPI_StringHandle filePathSH
This is what any end user should be shown.
Definition: HAPI_Common.h:1204
HAPI_Bool checkPartChanges
Definition: HAPI_Common.h:1320
char HAPI_Bool
Definition: HAPI_Common.h:119
HAPI_Bool hasUIMin
Definition: HAPI_Common.h:1494
HAPI_StringHandle typeInfoSH
Definition: HAPI_Common.h:1432
HAPI_PDG_WorkItemId workItemId
id of related work item.
Definition: HAPI_Common.h:2045
HAPI_NodeType type
Definition: HAPI_Common.h:1346
HAPI_StatusType
Definition: HAPI_Common.h:204
int extraFlags
For internal use only. :)
Definition: HAPI_Common.h:1334
HAPI_StringHandle splitGroupSH
Definition: HAPI_Common.h:1258
HAPI_PresetType
Definition: HAPI_Common.h:488
HAPI_StringHandle labelSH
Definition: HAPI_Common.h:1575
Data for a Box Part.
Definition: HAPI_Common.h:2020
HAPI_Bool interleaved
Definition: HAPI_Common.h:1853
int inputCount
The number of inputs this specific node has.
Definition: HAPI_Common.h:1388
HAPI_StringHandle helpURLSH
Asset help marked-up text.
Definition: HAPI_Common.h:1208
HAPI_ParmId parentParmId
Definition: HAPI_Common.h:1574
"int", "integer"
Definition: HAPI_Common.h:411
HAPI_Result
Definition: HAPI_Common.h:238
Direction vector.
Definition: HAPI_Common.h:663
int outputFileCount
The number of output files reported by the work item.
Definition: HAPI_Common.h:2071
HAPI_InputType
Definition: HAPI_Common.h:725
Max cache memory limit in MB.
Definition: HAPI_Common.h:896
HAPI_StringHandle nameSH
Name of the work item.
Definition: HAPI_Common.h:2074
HAPI_Bool splitGeosByGroup
Definition: HAPI_Common.h:1257
HAPI_State
Definition: HAPI_Common.h:287
HAPI_VolumeType type
Definition: HAPI_Common.h:1886
Sent for each node in the graph, when a cook starts.
Definition: HAPI_Common.h:1000
int objectCount
Asset help URL.
Definition: HAPI_Common.h:1210
HAPI_StringHandle helpTextSH
Full asset name and namespace.
Definition: HAPI_Common.h:1207
Implicit type based on data.
Definition: HAPI_Common.h:657
Sent when a scheduler is removed from the graph.
Definition: HAPI_Common.h:1018
HAPI_Bool splitPointsByVertexAttributes
Definition: HAPI_Common.h:1305
HAPI_StorageType storage
Can be either HAPI_STORAGETYPE_INT or HAPI_STORAGETYPE_FLOAT.
Definition: HAPI_Common.h:1905
HAPI_InputCurveMethod
Definition: HAPI_Common.h:585
HAPI_InputCurveMethod inputMethod
Definition: HAPI_Common.h:2009
int HAPI_NodeFlagsBits
Definition: HAPI_Common.h:552
Used for Results. Equivalent to HAPI_STATUSVERBOSITY_2.
Definition: HAPI_Common.h:226
Data for a Sphere Part.
Definition: HAPI_Common.h:2029
Sent when a node was removed from the graph.
Definition: HAPI_Common.h:968
HAPI_AttributeTypeInfo
Definition: HAPI_Common.h:653
HAPI_Bool haveObjectsChanged
Definition: HAPI_Common.h:1233
A Transform with Quaternion rotation.
Definition: HAPI_Common.h:1073
#define HAPI_EULER_VECTOR_SIZE
Definition: HAPI_Common.h:21
HAPI_Bool cookUsingHoudiniTime
Definition: HAPI_Common.h:2137
HAPI_Bool hasTaper
Definition: HAPI_Common.h:1917
HAPI_Int64 sharedMemoryBufferSize
Definition: HAPI_Common.h:1164
HAPI_GroupType
Definition: HAPI_Common.h:554
HAPI_StringHandle nameSH
Definition: HAPI_Common.h:1884
#define HAPI_C_STRUCT_TYPEDEF(struct_name)
Definition: HAPI_Common.h:108
HAPI_Bool isVisible
Definition: HAPI_Common.h:1636
Field + Single Selection Menu.
Definition: HAPI_Common.h:482
Sent when an warning is issued by the node.
Definition: HAPI_Common.h:949
int HAPI_NodeId
See Nodes Basics.
Definition: HAPI_Common.h:165
HAPI_PartId id
Id to identify this part relative to it's Geo.
Definition: HAPI_Common.h:1713
Describes an image format, used with HAPI_GetSupportedImageFileFormats()
Definition: HAPI_Common.h:1827
HAPI_CacheProperty
Identifies a memory cache.
Definition: HAPI_Common.h:869
HAPI_TCP_PortType
Definition: HAPI_Common.h:1052
HAPI_Bool isInstanced
Definition: HAPI_Common.h:1645
You should abort the cook.
Definition: HAPI_Common.h:292
Sent when a node was connected to another node.
Definition: HAPI_Common.h:972
int primitiveGroupCount
Definition: HAPI_Common.h:1699
HAPI_PrmScriptType scriptType
The Houdini script-type of the parm.
Definition: HAPI_Common.h:1424
Data for a single Key Frame.
Definition: HAPI_Common.h:1865
HAPI_Int64 totalArrayElements
Definition: HAPI_Common.h:1798
HAPI_StringHandle nameSH
Definition: HAPI_Common.h:1202
Mini Menu Only, Single Selection.
Definition: HAPI_Common.h:480
int HAPI_AssetLibraryId
Definition: HAPI_Common.h:162
HAPI_Bool isClosed
Similar to isPeriodic, but creates a polygon instead of a separate point.
Definition: HAPI_Common.h:1983
A special enum that represents the OR of both the CookError and CookWarning events.
Definition: HAPI_Common.h:1013
Parameter is not a menu.
Definition: HAPI_Common.h:476
2x2 Bounding box
Definition: HAPI_Common.h:679
#define HAPI_C_ENUM_TYPEDEF(enum_name)
[HAPI_InputCurve]
Definition: HAPI_Common.h:106
HAPI_TransformComponent
Definition: HAPI_Common.h:744
int filePathSH
The file path of the output.
Definition: HAPI_Common.h:2085
HAPI_Bool hasTransformChanged
Definition: HAPI_Common.h:1626
HAPI_StringHandle objectInstancePathSH
Definition: HAPI_Common.h:1622
int8_t HAPI_Int8
Definition: HAPI_Common.h:140
HAPI_Bool hasMin
Definition: HAPI_Common.h:1492
HAPI_StringHandle internalNodePathSH
Definition: HAPI_Common.h:1364
An empty, undefined event. Should be ignored.
Definition: HAPI_Common.h:924
HAPI_Bool preferOutputNodes
Definition: HAPI_Common.h:1331
HAPI_Bool disabled
Whether this parm should appear enabled or disabled.
Definition: HAPI_Common.h:1512
HAPI_Bool handleBoxPartTypes
Definition: HAPI_Common.h:1313
HAPI_StringHandle msgSH
String handle of the event message (> 0 if there is a message).
Definition: HAPI_Common.h:2060
Meta-data for a combo-box / choice parm.
Definition: HAPI_Common.h:1572
HAPI_SessionType type
Definition: HAPI_Common.h:1104
HAPI_NodeFlags inputNodeFlag
Definition: HAPI_Common.h:1542
int HAPI_PartId
Definition: HAPI_Common.h:173
HAPI_NodeId nodeId
Definition: HAPI_Common.h:1654
Dual Channel.
Definition: HAPI_Common.h:807
uint8_t HAPI_UInt8
Definition: HAPI_Common.h:135
HAPI_Bool isChildOfMultiParm
Definition: HAPI_Common.h:1546