HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
IMX_UDIMUtils.h File Reference
#include "IMX_API.h"
#include <UT/UT_Array.h>
+ Include dependency graph for IMX_UDIMUtils.h:

Go to the source code of this file.

Functions

IMX_API UT_Array< intIMXparseUDIMList (const UT_StringHolder &pattern)
 
IMX_API int IMXgetUDIMSequential (const UT_StringHolder &pattern, int index)
 

Function Documentation

IMX_API int IMXgetUDIMSequential ( const UT_StringHolder pattern,
int  index 
)

Returns the index-th tile for the given pattern. If index is out of range, returns -1.

IMX_API UT_Array<int> IMXparseUDIMList ( const UT_StringHolder pattern)

This function takes a UDIM list pattern and returns an array of individual tiles in the pattern. Each tile is clamped to within the 1001-1100 range. If the list is deemed to be empty, the returned array contains just the default tile (1001).