Page 1 of 1

Gather all the file from a .ocs?

Posted: Fri Aug 19, 2016 2:41 am
by Rikk The Gaijin
I know when you export your scene in .orbx it copies all the files inside, but is there a way to just copy the actual files from an .ocs to another folder?

Re: Gather all the file from a .ocs?

Posted: Fri Aug 19, 2016 3:12 am
by Phantom107
Is there a way? Definately, if you open up an *.OCS in notepad, you'll see it's basically all XML. Piece of code could just loop through it, retrieving the file locations and copying those files to another location. And then in the new *.OCS file correct those file references to the newly copied ones. Is that piece of software around, probably not.

But if more people want this kind of feature, I could build it into Phantom Architecture.

Re: Gather all the file from a .ocs?

Posted: Fri Aug 19, 2016 3:32 am
by Rikk The Gaijin
Phantom107 wrote:Is there a way? Definately, if you open up an *.OCS in notepad, you'll see it's basically all XML. Piece of code could just loop through it, retrieving the file locations and copying those files to another location.
Sounds like Octane Standalone can't do it right now. :(
Can someone write a Lua script to do it? :(

Re: Gather all the file from a .ocs?

Posted: Fri Aug 19, 2016 6:12 am
by calus
Rikk The Gaijin wrote:I know when you export your scene in .orbx it copies all the files inside, but is there a way to just copy the actual files from an .ocs to another folder?
So you're asking for a script to do in 1 step what usually needs 4 steps :
- save as package in the target directory
- load the ORBX just created
- unpack package
- delete the ORBX

but why not just use the ORBX from save as package to make this process 1 step also ?
(and unpack only when needed)

Re: Gather all the file from a .ocs?

Posted: Fri Aug 19, 2016 8:46 am
by Rikk The Gaijin
calus wrote:
Rikk The Gaijin wrote:I know when you export your scene in .orbx it copies all the files inside, but is there a way to just copy the actual files from an .ocs to another folder?
So you're asking for a script to do in 1 step what usually needs 4 steps :
- save as package in the target directory
- load the ORBX just created
- unpack package
- delete the ORBX

but why not just use the ORBX from save as package to make this process 1 step also ?
(and unpack only when needed)
No I think you are missing the point. I don't want to unpack the orbx in Octane, I want to gather in a folder all the files I used in a ocs. The actual files.

Re: Gather all the file from a .ocs?

Posted: Fri Aug 19, 2016 11:46 am
by calus
Rikk The Gaijin wrote: No I think you are missing the point. I don't want to unpack the orbx in Octane, I want to gather in a folder all the files I used in a ocs. The actual files.
Not missing the point at all :D, this is exactly what this feature do:

save as package:
this function gather the current .ocs scene + all the geometry and image files, and compress them as a ORBX file in your destination folder.
You can see ORBX as a ZIP format containg the scene and assets, and which Octane can read directly.

then eventually you can open the ORBX file in Octane and use the function:

unpack package:
this function unzip the current ORBX placing the OCS file in the same folder and textures/geometry files in an "assets" subfolder


Maybe you mix-up with how Octane was working in old versions ?

Re: Gather all the file from a .ocs?

Posted: Sun Aug 21, 2016 8:45 am
by Rikk The Gaijin
Oh WOW I totally missed the Unpack Package feature! :o
I thought you were talking about Ungroup :oops:
Thank you, this is great! :lol:

Re: Gather all the file from a .ocs?

Posted: Sun Aug 21, 2016 9:34 pm
by Phantom107
Thanks a lot for pointing that out!