save my settings as default settings?

DAZ Studio Integrated Plugin (Integrated Plugin maintained by OTOY)

Moderator: BK

Forum rules
Please keep character renders sensibly modest, please do not post sexually explicit scenes of characters.
Post Reply
User avatar
Fanthomas
Posts: 18
Joined: Thu Jul 28, 2011 6:33 pm
Location: Austria, Burgenland

I just started working with Daz Studio 4.9 recently. I would have a few questions:
How can I save my settings as default settings?
Can material settings for character be easily transferred to other characters, but the textures retained as in the Poser plug-in?
This is the most important thing for me at the beginning, I will certainly have more questions later, but I usually manage to solve problems myself. Only on the 2 points I have not found anything.

Greetings Thomas
Motherboard Model:MSI X99A SLI PLUS(MS-7885)
Processor Name:Intel Core i7-5820K
Total Memory Size:32 GBytes
Video Chipset:2X NVIDIA GeForce GTX 970 4GB
GeForce Game Ready Driver Version: 376.33
User avatar
face_off
Octane Plugin Developer
Posts: 15696
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

How can I save my settings as default settings?
Pls see FAQ 10) https://docs.otoy.com/manuals/products/ ... ction/faq/. I have been trying to implement a better solution for this, but not been successful so far.
Can material settings for character be easily transferred to other characters, but the textures retained as in the Poser plug-in?
Yes - using the template functionality. viewtopic.php?f=44&t=57362&p=294763&hil ... te#p294763

Paul
Win7/Win10/Mavericks/Mint 17 - GTX550Ti/GT640M
Octane Plugin Support : Poser, ArchiCAD, Revit, Inventor, AutoCAD, Rhino, Modo, Nuke
Pls read before submitting a support question
User avatar
Fanthomas
Posts: 18
Joined: Thu Jul 28, 2011 6:33 pm
Location: Austria, Burgenland

Thanks for the answer!
I've also found a great way to perform personal settings from both Daz Studio and Octane Plug In as startup.
In the Studio menu on Edit-Prefernces in the tab "Start Up" you can call the previously saved settings under "Load File". Then they are loaded at every start.

Thomas
Motherboard Model:MSI X99A SLI PLUS(MS-7885)
Processor Name:Intel Core i7-5820K
Total Memory Size:32 GBytes
Video Chipset:2X NVIDIA GeForce GTX 970 4GB
GeForce Game Ready Driver Version: 376.33
User avatar
rajib
Licensed Customer
Posts: 401
Joined: Sun Sep 28, 2014 4:57 am

face_off wrote:
How can I save my settings as default settings?
Pls see FAQ 10) https://docs.otoy.com/manuals/products/ ... ction/faq/. I have been trying to implement a better solution for this, but not been successful so far. Paul
Hi Paul,

Currently are the defaults hardcoded in the plugin or being read from a config file ? If hardcoded, you could change the plugin to read the defaults from a file at startup. The installer can install the defaults file to the <DAZ Studio install path>\plugins\OctaneRender folder and then do the following:

On OctanePluginStart
{
CheckDefaultsFileAvailability();
OpenAndLoadDefaults();
}

CheckDefaultsFileAvailability() //To guarantee a defaults file is present in the %APPDATA%\OctaneRender\ folder
{
Does %APPDATA%\OctaneRender\Defaults file Exists ?
If yes,
----Validate the file; If valid, return //If XML, parse XML, if SQLite, run query to validate the db or write file checksum to registry (at install time and whenever updated) and verify it on load

If file does not exists or not valid, copy <DAZ Studio install path>\plugins\OctaneRender\Defaults file to %APPDATA%\OctaneRender\ folder.
}

OpenAndLoadDefaults()
{
Open %APPDATA%\OctaneRender\ Defaults file and initialize the plugin setting.
}

The above will guarantee that the defaults file is always available in the %APPDATA%\OctaneRender\ folder at the plugin startup.

Then put a "Set As Default" button in the Rendersettings and Environment tabs which will write the current settings of that tab to the Defaults file in the %APPDATA%\OctaneRender\ folder.

This way whatever the users of the plugin save as defaults will be there in the %APPDATA%\OctaneRender\ folder which will be read first when the plugin load. If the file gets corrupted or deleted the initial step of checking the file exists or not and is valid or not will copy over the file from the install folder to the %APPDATA%\OctaneRender\ folder if needed.

When a scene is opened, the plugin can check if the scene file has any render / environment settings saved within it or not, if not, it can show the defaults loaded from the defaults file in %APPDATA%\OctaneRender\ folder otherwise show whatever was saved with the scene.

Regards,
Rajib
Windows 10 Pro i9-9980XE 128GB RAM|4 x Titan RTX
Houdini 18.5(2020.2.1.2)|Cinema C4D R26|Daz Studio Pro 4.21.0.5(Octane 2021.1.6.83)
NVIDIA 460.89 Studio Standard
User avatar
face_off
Octane Plugin Developer
Posts: 15696
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

Hi Rajib - yes they are hardcoded into the plugin. I have code in the plugin to read the defaults from an ORBX file in the %APPDATA%\OctaneRender\ folder, however in testing this I found a much larger issue where rendersettings are being ignored completely by the plugin in some situations, which meant whilst loading the ORBX defaults worked, they were not actually being applied to the Octane scene. I really need to fix this problem first, and then defaults will be possible I think.

Paul
Win7/Win10/Mavericks/Mint 17 - GTX550Ti/GT640M
Octane Plugin Support : Poser, ArchiCAD, Revit, Inventor, AutoCAD, Rhino, Modo, Nuke
Pls read before submitting a support question
User avatar
rajib
Licensed Customer
Posts: 401
Joined: Sun Sep 28, 2014 4:57 am

face_off wrote:Hi Rajib - yes they are hardcoded into the plugin. I have code in the plugin to read the defaults from an ORBX file in the %APPDATA%\OctaneRender\ folder, however in testing this I found a much larger issue where rendersettings are being ignored completely by the plugin in some situations, which meant whilst loading the ORBX defaults worked, they were not actually being applied to the Octane scene. I really need to fix this problem first, and then defaults will be possible I think.

Paul
Thanks for the info Paul. I think this may be the same reason when you export some of the settings and import them back some of them still retain the existing values and not the values that were imported. Hopefully you will be able to track where they seem to get overwritten by the hardcoded values.
Windows 10 Pro i9-9980XE 128GB RAM|4 x Titan RTX
Houdini 18.5(2020.2.1.2)|Cinema C4D R26|Daz Studio Pro 4.21.0.5(Octane 2021.1.6.83)
NVIDIA 460.89 Studio Standard
Post Reply

Return to “DAZ Studio”