Page 1 of 1

save my settings as default settings?

Posted: Sun Nov 13, 2016 12:31 pm
by Fanthomas
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

Re: save my settings as default settings?

Posted: Sun Nov 13, 2016 11:14 pm
by face_off
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

Re: save my settings as default settings?

Posted: Tue Nov 15, 2016 3:29 pm
by Fanthomas
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

Re: save my settings as default settings?

Posted: Thu Dec 08, 2016 3:22 pm
by rajib
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

Re: save my settings as default settings?

Posted: Thu Dec 08, 2016 9:01 pm
by face_off
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

Re: save my settings as default settings?

Posted: Sat Dec 10, 2016 10:09 am
by rajib
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.