Tranfering Octane scene between pc's v1.2
Posted: Fri Dec 27, 2013 2:51 pm
*** UPDATED FixOctanePaths file *** version 1.2 now. So redownload the zip and extract them and replace the old files. The CollectSceneOctane hasn't changed, but the FixOctanePaths has.
Changelog:
Changelog since 1.1 (release version on this forum)
Bugfix written the Octane_filename.pz3
Extra check for . so only extenstions get used (there was an issue with filenames with hdr in them for instance)
made a function of the repeating things (easier reading and adding or deleting filetypes to search for
more feedback for the user (log to show which paths have been found for which filetype or that nothing has been found)
Hopefully no more weird bugs. Tested with both Poser 2014 and Poser 2012, so should work without issues now in 9, 10, 2012 and 2014. Don't have Poser 8 so can't tell there.
==
With Poser you have the collectSceneinventory script that gets all the textures, camera's, lights ect for a poser scene and saves this in one output folder with a pz3 to point towards this.
It also copies the Addondata that Octane uses, unfortunately when you transfer it to 2nd pc, the model will be mostly blank qua textures, because it will look for the paths of the first's pc library.
The inventory script also ignores what textures you define for Octane (read Livedb), ies lights or Hdr's.
On small scenes, it's easy to edit the pz3 in the output folder and make it work, but bigger scenes take waay to much time.
To fix this, I build 2 scripts for a friend to gather all Octane textures, ies lights and hdr's and put them in the same output folder. The second is for the 2nd to correct the paths for Octane.
It's called collectSceneOctaneInv.pu and it's run from Poser after the collectSceneInventory script.
When you run it, it asks for the pz3 from the collectSceneInventory.
It reads that for the output folder and the textures that are in the Addondata, which are located in the %userprofile%\AppData\Roaming\Poser Pro\10 on mosts systems (win Vista and above).
Then copies those files to the outputfolder.
So all the scene data is now located in the output folder.
You transfer the output folder to the 2nd pc.
- Start Poser on the 2nd pc.
- Run the 2nd script called FixOctanePaths.py
- It asks for the pz3. Point it to the output folder you copied to this pc.
- It replaces all paths in the pz3 and saves it as Octane_filename.pz3. That way you still have the original.
- After that load the Octane_filename.pz3 and start Rendering.
Hopefully it's usefull for somebody.
ps. the code is still very quick and dirt. It can probably be done much better. But it works like this, so i'm not going to mess with it. Feel free to do so. But please post a modified version back so others can use it.
Cheers,
Xipomus
Changelog:
Changelog since 1.1 (release version on this forum)
Bugfix written the Octane_filename.pz3
Extra check for . so only extenstions get used (there was an issue with filenames with hdr in them for instance)
made a function of the repeating things (easier reading and adding or deleting filetypes to search for
more feedback for the user (log to show which paths have been found for which filetype or that nothing has been found)
Hopefully no more weird bugs. Tested with both Poser 2014 and Poser 2012, so should work without issues now in 9, 10, 2012 and 2014. Don't have Poser 8 so can't tell there.
==
With Poser you have the collectSceneinventory script that gets all the textures, camera's, lights ect for a poser scene and saves this in one output folder with a pz3 to point towards this.
It also copies the Addondata that Octane uses, unfortunately when you transfer it to 2nd pc, the model will be mostly blank qua textures, because it will look for the paths of the first's pc library.
The inventory script also ignores what textures you define for Octane (read Livedb), ies lights or Hdr's.
On small scenes, it's easy to edit the pz3 in the output folder and make it work, but bigger scenes take waay to much time.
To fix this, I build 2 scripts for a friend to gather all Octane textures, ies lights and hdr's and put them in the same output folder. The second is for the 2nd to correct the paths for Octane.
It's called collectSceneOctaneInv.pu and it's run from Poser after the collectSceneInventory script.
When you run it, it asks for the pz3 from the collectSceneInventory.
It reads that for the output folder and the textures that are in the Addondata, which are located in the %userprofile%\AppData\Roaming\Poser Pro\10 on mosts systems (win Vista and above).
Then copies those files to the outputfolder.
So all the scene data is now located in the output folder.
You transfer the output folder to the 2nd pc.
- Start Poser on the 2nd pc.
- Run the 2nd script called FixOctanePaths.py
- It asks for the pz3. Point it to the output folder you copied to this pc.
- It replaces all paths in the pz3 and saves it as Octane_filename.pz3. That way you still have the original.
- After that load the Octane_filename.pz3 and start Rendering.
Hopefully it's usefull for somebody.
ps. the code is still very quick and dirt. It can probably be done much better. But it works like this, so i'm not going to mess with it. Feel free to do so. But please post a modified version back so others can use it.
Cheers,
Xipomus