Hi,
How can one get and work with liveDB from lua scripts?
Seems that octane.importLocalDB is not available.
Aleksandar
How to work with localDB in lua
Hi,
here you can find a lua script for finding all materials IDs from LiveDB, and to download the desired material based on ID:
viewtopic.php?f=23&t=54623&hilit=.lua#p278441
I have just tried them with Standalone 2020.2.5, and they seem to work as expected.
ciao
Beppe
here you can find a lua script for finding all materials IDs from LiveDB, and to download the desired material based on ID:
viewtopic.php?f=23&t=54623&hilit=.lua#p278441
I have just tried them with Standalone 2020.2.5, and they seem to work as expected.
ciao
Beppe
Oops, sorry,I have answered at the first question only.
About LocalDB, it is just a path with a series of .orbx files saved in it.
So you can use octane.project.getPreferences to read the NT_LOCAL_APP_PREFS node, and get the LocalDB path with A_LOCALDB_DIR.
If not changed in Preferences, by default it is set to C:\Users\UserName\AppData\Roaming\OctaneRender\localDb.
ciao
Beppe
About LocalDB, it is just a path with a series of .orbx files saved in it.
So you can use octane.project.getPreferences to read the NT_LOCAL_APP_PREFS node, and get the LocalDB path with A_LOCALDB_DIR.
If not changed in Preferences, by default it is set to C:\Users\UserName\AppData\Roaming\OctaneRender\localDb.
ciao
Beppe