Regarding:Access the model or object from one common folder

Posted By: sakthi

Regarding:Access the model or object from one common folder - 07/22/09 07:01

Hai,

I can access the model or load (.wmb) file from one common folder.using the following code.


PATH("\\rootfolder\\subfolder");

The above code work proberly in the (.wdl) file at 3DGS A7.But it doesn't work in the (.c) file at 3DGS A7. is there any other way to access the file from folder.

Please help me.


Regards,
K.Sakthivel
Posted By: Rei_Ayanami

Re: Regarding:Access the model or object from one common folder - 07/22/09 07:47

You can only acces Scripts when you call them directly in the include: Example:
#include <scripts\\player.c>

But you can include foldes for models or other things(but not scripts) with:
#define PRAGMA_PATH "Models"
Posted By: Germanunkol

Re: Regarding:Access the model or object from one common folder - 07/22/09 07:50

shouldn't it be:
#include "scripts\\player.c"
?
I thought the <> are just for the files inside the include folder..?
Posted By: Rei_Ayanami

Re: Regarding:Access the model or object from one common folder - 07/22/09 07:51

it works, so I donīt know.
Posted By: flits

Re: Regarding:Access the model or object from one common folder - 07/22/09 08:05

If the script name is given in angular brackets <..>, it is searched in the include folder. The include folder contains all common .h include files and the default.c script.

If the script name is given in double quotes "...", it is first searched in the work folder
© 2024 lite-C Forums