Name
hw_HaveObject -- check if object exists (V8.0)
Synopsis
int ok = hw_HaveObject(int type, lua_ID *id, struct hwTagList *tags);
Function
This function can be used to check if an object exists. The type argument must be set to one of Hollywood's predefined object types and id must be set to an identifier to check. See Object identifiers for details.

The following object types are currently recognized:

 
#define HWOBJ_BGPIC           1
#define HWOBJ_SAMPLE          2
#define HWOBJ_BRUSH           3
#define HWOBJ_ANIM            4
#define HWOBJ_SNDMODULE       5
#define HWOBJ_KEYDOWN         6
#define HWOBJ_NOOBJECT        7
#define HWOBJ_TEXTOBJECT      8
#define HWOBJ_TEXTOUT         9
#define HWOBJ_UNDO            10
#define HWOBJ_PRINT           11
#define HWOBJ_BRUSHPART       12
#define HWOBJ_BGPICPART       13
#define HWOBJ_BOX             14
#define HWOBJ_CIRCLE          15
#define HWOBJ_ELLIPSE         16
#define HWOBJ_LINE            17
#define HWOBJ_PLOT            18
#define HWOBJ_MAINWINDOW      19
#define HWOBJ_ANIMDISK        20
#define HWOBJ_DISPLAY         21
#define HWOBJ_LAYER           22
#define HWOBJ_HIDEBRUSH       23
#define HWOBJ_INSERTBRUSH     24
#define HWOBJ_HIDELAYER       25
#define HWOBJ_REMOVELAYER     26
#define HWOBJ_POLYGON         27
#define HWOBJ_MASK            28
#define HWOBJ_NEXTFRAME       29
#define HWOBJ_ALPHACHANNEL    30
#define HWOBJ_ARC             31
#define HWOBJ_SPRITE          32
#define HWOBJ_MUSIC           33
#define HWOBJ_NEXTFRAME2      34
#define HWOBJ_CLIPREGION      35
#define HWOBJ_POINTER         36
#define HWOBJ_ASYNCDRAW       37
#define HWOBJ_DOUBLEBUFFER    38
#define HWOBJ_MEMORY          39
#define HWOBJ_EVENTHANDLER    40
#define HWOBJ_INTERVAL        41
#define HWOBJ_TIMEOUT         42
#define HWOBJ_FONT            43
#define HWOBJ_FILE            44
#define HWOBJ_DIR             45
#define HWOBJ_BRUSH_VS_BOX    46
#define HWOBJ_LAYER_VS_BOX    47
#define HWOBJ_SPRITE_VS_BOX   48
#define HWOBJ_VECTORPATH      49
#define HWOBJ_VIDEO           50
#define HWOBJ_MOVELIST        51
#define HWOBJ_ANIMSTREAM      52
#define HWOBJ_TIMER           53
#define HWOBJ_CLIENT          54
#define HWOBJ_SERVER          55
#define HWOBJ_UDPOBJECT       56
#define HWOBJ_MENU            57
#define HWOBJ_SPRITE_VS_BRUSH 58
#define HWOBJ_ICON            59
#define HWOBJ_SERIAL          60
#define HWOBJ_ASYNCOBJ        61
#define HWOBJ_PALETTE         62

hw_HaveObject() will return True if the object exists and False otherwise.

Designer compatibility
Unsupported

Inputs
type
object type to check (see above)
id
object identifier to check
tags
reserved for future use; set it to NULL for now
Results
ok
True if object exists, False otherwise

Show TOC