Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Studio Chat / LoadObject with full path

Author
Message
matty47
13
Years of Service
User Offline
Joined: 20th Nov 2007
Location:
Posted: 12th Aug 2021 07:13 Edited at: 12th Aug 2021 07:13
Does LoadObject not support a full path filename? I used the File Explore plugin to read a filename of a model that I wanted to load. The filename was returned with its full path eg
"E:\Animate\Christmas\Gifts\GiftA.b3d" however I received an error that LoadObject could not load the file. I copied the file and its texture to the project media directory and did a
- no problems. Any explanation?? Thanks
blink0k
Moderator
8
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 12th Aug 2021 07:24 Edited at: 12th Aug 2021 07:25
if you are using a full pathname then you should preceed it with "raw:"
In your case
raw:E:\Animate\Christmas\Gifts\GiftA.b3d

Good luck with your endevours and please post your progress
matty47
13
Years of Service
User Offline
Joined: 20th Nov 2007
Location:
Posted: 12th Aug 2021 08:34 Edited at: 12th Aug 2021 08:35
Thanks for the response. Your suggestion did not work for me (LoadObject(raw:file$))HOWEVER it prompted me to search for raw and I found ChooseRawFIle(). If I use this instead of the FileExplore function the model will load. I was setting a variable (file$) to the return of the FileExplore function. file$ ended up being the full path. Using the ChooseRawFIle() to set file$ it seems that only the filename is set not the full path and it still loads the model OK.
blink0k
Moderator
8
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 12th Aug 2021 09:06
try LoadObject("raw:"+file$)

Login to post a reply

Server time is: 2021-10-21 02:30:00
Your offset time is: 2021-10-21 02:30:00