aramz
Thanks for this. Tried to batch output but getting the following error. Any ideas?
---
Traceback (most recent call last):
File "Carlo_Jongen::Lop/Megascan_USD_Builder::1.3/batch_convert", line 1, in <module>
File "Carlo_Jongen::Lop/Megascan_USD_Builder::1.3, PythonModule", line 841, in BuildSolarisNodes
File "Carlo_Jongen::Lop/Megascan_USD_Builder::1.3, PythonModule", line 594, in GetMegaScanDict
UnboundLocalError: cannot access local variable 'PreviewSourceFile' where it is not associated with a value
Make a new directory called "MegaScan_Test", copy like 5 MegaScan folders into the "MegaScan_Test" folder. Your "MegaScan_Test" folder should have for example folders like this inside:
E:/MegaScan_Test
- tree_trunk_ugggcjmla,
- wood_root_rkswd,
- Nature_Rock_vceicdsga,
- etc...
Set the MegaScan_Test directory as your Source Directory inside the HDA. Now also make a new directory and call it "MegaScan_Test_OUT" and set this directory as the Target Directory. Make sure that the "MegaScan_Test_OUT" is not inside the "MegaScan_Test" folder.
The point is to use only a few MegaScans files for debugging.
Open the Optional Settings and push the "Save Debug File". This will save a "MegaScanDebug.json" into your source directory.
Open the "MegaScanDebug.json" and look for the line with "PreviewSourceFile": Next to this line you should see a folder structure and a preview file, for example:
"PreviewSourceFile": "E:/MEGASCAN_TEST/tree_trunk_ufwgaaifa/ufwgaaifa_Preview.png"
Check if these files actually exist. It looks like your Preview files are missing.
When you download your files from MegaScans you should not rename or remove any of the files or file structure inside. During the making of this HDA I've noticed several inconsistencies in the way MegaScan files are structured. I thought I had everything figured out but maybe you've downloaded files that are not compatible with the way my HDA works.
Try to Batch convert a few files first before you try to convert all your MegaScan files. PM or email me if this doesn't solve your problem. My email address is in the Info tab of the HDA.