JaduBen Posted December 16, 2021 Report Share Posted December 16, 2021 I am trying to generate a preview from Blender, it is outputting the file and I can manually browse to it and open. But the UI just displays "Error loading preview: Parameter is not valid." Link to comment Share on other sites More sharing options...
calbzam Posted December 16, 2021 Report Share Posted December 16, 2021 Hi, Are you using Gluon? Could you attach an screenshot? Not sure if you can even share a test file so we can try to reproduce the issue. Regards, Carlos. Link to comment Share on other sites More sharing options...
JaduBen Posted December 16, 2021 Author Report Share Posted December 16, 2021 I tried both Gluon and full Plastic. I'll attach the preview generating script here. It is a slight modification of a previewing script that ships with Blender but with an added output option so we send it to where plastic expects to find the file. Below are the preview settings. "<path to blender install>\blender.exe" -b "@src" --python "<path to python script>\bl_previews_render_plastic.py" -- "@output" bl_previews_render_plastic.py Also I found this in the logs DEBUG PreviewRequest - Exception thrown when loading the following preview: <myfile>.blend -> Parameter is not valid. at System.Drawing.Bitmap..ctor(String filename) at aii.a(String A_0) at jl.d(String A_0, Boolean A_1, ach A_2, abz A_3) at abu.a(Object A_0) Link to comment Share on other sites More sharing options...
Daniel Peñalba Posted January 11, 2022 Report Share Posted January 11, 2022 @JaduBen, I think that the preview configuration is not correct. You should setup a script, let's call, for example, "blender_preview.bat", that: receives two arguments: the input file and the output file. it executes python and pass the python script those parameters. Then, you should setup the preview something like this: Link to comment Share on other sites More sharing options...
JaduBen Posted January 11, 2022 Author Report Share Posted January 11, 2022 The generated command from my current setup works, and the preview file is generated, plastic just wont load the resulting image Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now