Comments (10)
I have to also enable freestyle itself don't I? :
Yup, now I see an svg.
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.
from freestyle-svg-exporter.
The svg gets written to scene.render.frame_path
(run that in the console to get a path, depends on defaults and your system).
from freestyle-svg-exporter.
That returned "name 'scene' is not defined
So I tried bpy.data.scene.render.filepath which also returned "obect BlendData has no attribute 'scene'"
So I tried bpy.context.scene.render.filepath, which worked and returned the path defined in the renders tab (buth with escape slashes, so: 'C:\Blender render output\'. But I don't see the output file at that location after rendering.
Either it's not outputting at all, or its outputting elsewhere.
from freestyle-svg-exporter.
@Meteor0id It will certainly be in your /tmp
(system temporary folder). That's where Blender stores it's files when they have not been saved or when the render output has not been defined.
from freestyle-svg-exporter.
@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.
On windows //tmp\ gets resolved as C:\tmp
Still no idea where the output might have went, if there is any.
from freestyle-svg-exporter.
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 render > output
.
from freestyle-svg-exporter.
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.
from freestyle-svg-exporter.
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.
It might also be some sort of permissions issue. Did you run blender in console mode, and did it throw any exceptions/warnings there?
from freestyle-svg-exporter.
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.
from freestyle-svg-exporter.
Happy it works! Good luck with it.
from freestyle-svg-exporter.
Related Issues (20)
- FreeStyle SVG fills HOT 5
- Per face material fill HOT 8
- Output SVG's have many open paths HOT 4
- Blender 2.8 compatibility HOT 19
- Exporting grease pencil animation in blender 2.8
- Fill export status HOT 5
- Is exporting open paths possible?
- SVG file format not visible HOT 1
- Diffs for upstream
- Naming feature request HOT 1
- Is it possible to know the index of the vertex on freestyle lines on the whole mesh? HOT 3
- How to set stroke colors? HOT 1
- Can't activate plugin in Blender 3.6 HOT 1
- fill contour doesn't work and throws errors HOT 2
- Error on loading addon HOT 1
- Fill contours is generated for every lineset HOT 4
- DXF Exporter HOT 3
- Freestyle feature request HOT 3
- FreeStyle SVG Exporter - colors HOT 30
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freestyle-svg-exporter.