-
Notifications
You must be signed in to change notification settings - Fork 18
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
Where does it export to again? Not able to find an exported svg. #9
Comments
The svg gets written to |
That returned "name 'scene' is not defined Either it's not outputting at all, or its outputting elsewhere. |
@Meteor0id It will certainly be in your |
@xuv that is what I expected too, so that was the first place I looked. It is where other output was send before I defined a new path. But no .svg there either. |
Sorry for the incomplete piece of code. When I (on linux) run the command >>> bpy.context.scene.render.filepath
'/tmp/' This value is set in the Properties at |
I have already succesfully ran the same command on Windows 10, whcih did indeed return the output path. However no svg file is at that location, not after redering an image nor after rendering an animation. Is it possible the plugin fails to properly escape the Windows filepath, or uses the wrong kind of slashes somethere? I have not gone though the python involved, as I have much on my hands at the time. |
The relevant code is here def create_path(scene):
"""Creates the output path for the svg file"""
dirname = os.path.dirname(scene.render.frame_path())
basename = bpy.path.basename(scene.render.filepath)
if scene.svg_export.mode == 'FRAME':
frame = "{:04d}".format(scene.frame_current)
else:
frame = "{:04d}-{:04d}".format(scene.frame_start, scene.frame_end)
return os.path.join(dirname, basename + frame + ".svg") Handling path names in a cross-platform way is tricky, but I don't see anything that could go wrong here. |
I tried all sorts of things. I ran blender with administrator privileges both the gui and the comand line, still no sign of the add-on outputing anything, not even a warning or error. I have no idea how to even check if it is being run. |
I have to also enable freestyle itself don't I? : Lets document this clearly? Idiots like me don't catch up on that on their first 10 attempts. everything works perfectly after simply also checking freestyle itself. Thanks for this add-on it works great, as soon as I checked that box I had a working svg animation in less than a minute of rendering. Perfect. |
Happy it works! Good luck with it. |
Made sure I have the latest version from this repository, made sure I have the default output path set in "user preferences > file > render output". Made sure the plugin is enabled and checked in the render tab.
Have restarted blender to make sure all settings apply.
Still, when rendering, only getting the png's had set to render but no svg anywhere I can find it.
Using blender on Windows 10.
The text was updated successfully, but these errors were encountered: