View Full Version : find all needed external files

04-09-2009, 07:04 AM
Hey there,

I need to find all paths to external files that are used by a scene.
could someone guide me to the right direction?

I'd need all textures, object files, caches and so on...
is LWObjectInfo the right starting point?

Thanks for any help

04-16-2009, 04:12 AM
ok, i made some progress..
i'm able to find lwo and image files with the following code:

vector<string> objects;
LWItemInfo *iteminfo;
iteminfo = (LWItemInfo*)global( LWITEMINFO_GLOBAL, GFUSE_TRANSIENT );
LWObjectInfo *objinfo;
objinfo = (LWObjectInfo*)global( LWOBJECTINFO_GLOBAL, GFUSE_TRANSIENT );
LWItemID id;
id = iteminfo->first( LWI_OBJECT, NULL );
string stPath = objinfo->filename(id);

id = iteminfo->next( id );

but how can i get the other kinds of files like .mdd and .pfx?
is there a possibility to find these?