-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possibity to save rander images in unsaved file. (Enhancement) #3
Comments
@gitsamhub Happy to hear you like the add-on! Background detailsASR relies on a saved project location for multiple purposes:
After working back and forth on the problem a bit (and a particularly silly bug I introduced during the process that left me scratching my head for...a bit), there is now a branched version of the add-on you can use. Limitations and requirements:
Alternative solutionYou could set up a File Output node in the Compositing tab with an absolute path and date and time variables to ensure unique output file names. Saving this in your startup project would auto-save all renders by default, it wouldn't require saving the project first, and also wouldn't rely on merging future updates into this alternate branch. Download linkBut with that said, you can download the modified version here: Future developmentFurther integrating the unsaved-project feature (such as with safeguards against manual serial numbers overwriting previous files) takes the scripting in a messy direction I'd like to avoid, so I doubt this will find it's way back to the main branch. But I hope it helps as a one-off feature? Please let me know if it works for you! |
Sorry for late response. I was away from my machine. And thank you for taking time and explaining all the technical details. However, I am sort of new to Blender and have hard time understanding technical stuff. Regarding your 'Alternative solution' I will search for setting up a File Output node in the Compositing tab with an absolute path and date and time variable. If possible could you explain how to do that? My requirements remains the same of blender auto incrementing file names.(Not sure if that is possible) |
@gitsamhub To implement the alternate solution you'll want to enable "Use Nodes" in the "Compositing" tab (it's a checkbox in the panel menu bar). This will give you "Render Layers" and "Composite" nodes, to which you'll want to add a "File Output" node and connect the render output to it. See attached image. However; if you must have auto-incrementing serial numbers (as opposed to date and time) without saving your project file first...you'll have to use the custom version of the plugin I posted as a download link above. You'll need to uninstall the official plugin first, then install this alternate version. To enable rendering in un-saved scenes, you'll have to customise your default starting project.
Whenever you open Blender and render something (even the default cube), it should save a "Blender-####" file with auto-incrementing serial number in the selected folder. |
I did exactly as you said about the 'custom version of the plugin' you posted above. For some reason it is not working or may be I am missing something. I reset my Blender to all factory settings and tried several times with fresh installation of plugin. But whenever i press f12 for render, i don't see any image being saved in path i have given in auto save render path. Just for the info in case there is any path issue: For the sake of clarity I would like to explain what is desired functionality I am looking for. -I would like to mention course of action as below:
(Now here is the daunting task in Step 3. If i press Alt+S or custom hotkey for saving image, blender goes to default documents folder. Then I have to choose my desired output folder in another drive. Now If i save the image without any confirmation Blender overwrites the untitled image. I close the blender and open it for the next time. I render the image. Now imagine I have already saved dozens of images in that folder. So i have to scroll through all that stuff and again have to follow all the above steps just so that image does not get overwritten. ) For time being I am just leaving this. And I will wait for your next version of official release. My requirements may not exactly match with the purpose of this particular add-on. Regardless, your add-on is best and comes with other functionalities that might be suitable for other user workflows. |
@gitsamhub It was working for me, but I don't have a Windows computer to test on (macOS Monterey 12.5.1, Blender 3.2.2). That said, I did discover the version posted here on GitHub was missing a key line that substituted "Blender" for the project name when unsaved. Though this doesn't explain why nothing was being saved on your machine; it should have stilled saved a "-0001.png" file. I've committed the correction, so if you re-download the file linked above you'll have an updated version with the latest features (1.8.5). It will also be labeled as "Support_Unsaved_Projects branch" in the Blender plugins list now, to better define which branch is installed. See the attached screenshot for the settings that tested successfully on my machine when saved in the default starting file. This plugin was definitely never designed for selective saving from the render window though, and it sounds like maybe that's what you're looking for. |
Thank you for posting the screenshot, I could not have found the issue otherwise. I noticed that variables section was missing in my add-on screen as shown in above screenshot. After couple of tries install and uninstall, I noticed that console was giving error of missing VF_autoSaveRender.py. The problem was regarding file name. So when i clicked on the custom add-on link provided above, it opened as raw plane text in new tab. I was saving that file again with the .py extension. I am sure it has to do something with the error. So after that i tried right click and save as file the above link. And guess what, It worked. :) This is almost close to the functionality I was looking for and thank you for that. It will save every image without replacing them, only thing is I will have to check and select particular images and delete the other images every now and then. But I think this is much better than my earlier default workflow. Only If is it possible to have the same functionality as above but for the selective renders, then that would be very helpful. But as of now i leave that to you, since i am not aware of the technical limitation regarding same. Thank you for your time. |
@gitsamhub Glad it's working for you now! Selectively/manually saving renders isn't what this add-on is designed to address, but I'm sure someone could make it if they wanted to. The serialisation code (scanning a directory and generating the next appropriate number) was something I retained from the original Render Auto Save add-on by Florian Meyer. |
Hi, Thank you for creating this wonderful add-on.
Often times I just want to test out random 3d models in different light environments. And there are also other scenarios where I don't want to save blender file, but just do some quick renders for practice.
So, I would like to ask if is it possible to save render images of unsaved blender file? I am not concerned with file naming conventions. The only thing i care about is to not override image file that already exists in that location.
The text was updated successfully, but these errors were encountered: