HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CL_ClipResolver.h File Reference
#include "CL_API.h"
#include "CL_Clip.h"
#include <UT/UT_Functor.h>
#include <UT/UT_SharedPtr.h>
#include <UT/UT_StringHolder.h>
+ Include dependency graph for CL_ClipResolver.h:

Go to the source code of this file.

Classes

class  CL_ClipResolverHelper
 

Functions

CL_API const CL_ClipCLresolveClip (int &op_id, const UT_StringRef &path, const int cwd_op_id=-1)
 

Function Documentation

CL_API const CL_Clip* CLresolveClip ( int op_id,
const UT_StringRef path,
const int  cwd_op_id = -1 
)

Attempt to resolve the given path to a clip represented by a CHOP, whose unique id will be returned in op_id. If not represented by a node, then op_id will be negative and NULL returned. Since this may cause CHOP cooking, so you should run this from a UT_TaskArena::lockedExecute() using the appropriate lock. If cwd_op_id is non-negative, then it will be used to resolve relative paths. Otherwise, OPgetDirector()->getCwd() gets used.