Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology
Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered
You are not logged in.
Pages: 1
hi all
goal : i want download and unpak a pkos file, after that use instantiate plugit to load .xos file
fun cbRun (inst, from, action, param, rep, p)=
let p -> [url path] in
(
downloadFile url mkfun3 @loadpakfile [path];
_fooS "load ok ";
let mkUnpakOS3DProject // i need some thing here from path// "" 1 -> nfile in
(
_fooS "unpak ok";
);
);
0;;
download is ok
but i cant unzip/unpak the .pkos file
mkUnpakOS3DProject need [p s i]
how can i get p from a path file
i tried also
let getFilesFromDir "tutorials/yakfr.pkos" "pkos nill -> file ->in (sure its not correct)
thanks
Offline
Hello,
you can find the doc here: https://www.scolring.org/files/doc_html … ystem.html
to get a P from S use _checkpack, it will get the path (P) available in the first found Scol partition.
let _checkpack "tutorials/yakfr.pkos" -> pfile in
let mkUnpakOS3DProject pfile nil 0 -> nfile in
set instantiatestr.INSTANTIATE_sPath = nfile;
You can also use the scene loader plugit that already allow to download 3D files and PKOS and load them directly.
Offline
Pages: 1