Gather all the file from a .ocs?

Generic forum to discuss Octane Render, post ideas and suggest improvements.
Forum rules
Please add your OS and Hardware Configuration in your signature, it makes it easier for us to help you analyze problems. Example: Win 7 64 | Geforce GTX680 | i7 3770 | 16GB
Post Reply
Rikk The Gaijin
Licensed Customer
Posts: 1528
Joined: Tue Sep 20, 2011 2:28 pm
Location: Japan

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?
User avatar
Phantom107
Licensed Customer
Posts: 686
Joined: Tue Jul 24, 2012 11:31 am
Location: The Netherlands

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.
Rikk The Gaijin
Licensed Customer
Posts: 1528
Joined: Tue Sep 20, 2011 2:28 pm
Location: Japan

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? :(
calus
Licensed Customer
Posts: 1308
Joined: Sat May 22, 2010 9:31 am
Location: Paris

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)
Pascal ANDRE
Rikk The Gaijin
Licensed Customer
Posts: 1528
Joined: Tue Sep 20, 2011 2:28 pm
Location: Japan

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.
calus
Licensed Customer
Posts: 1308
Joined: Sat May 22, 2010 9:31 am
Location: Paris

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 ?
Pascal ANDRE
Rikk The Gaijin
Licensed Customer
Posts: 1528
Joined: Tue Sep 20, 2011 2:28 pm
Location: Japan

Oh WOW I totally missed the Unpack Package feature! :o
I thought you were talking about Ungroup :oops:
Thank you, this is great! :lol:
User avatar
Phantom107
Licensed Customer
Posts: 686
Joined: Tue Jul 24, 2012 11:31 am
Location: The Netherlands

Thanks a lot for pointing that out!
Post Reply

Return to “General Discussion”