Forum Discussion
MathNotermans-9
3 years agoCommunity Member
Change an Illustrator SVG inside Storyline with GSAP
As a follow up on my SVG tricks with GSAP in Storyline i now show you how to edit color and outlines of a SVG from Illustrator directly in Storyline. Even animate it with GSAP. Directly importing it...
MathNotermans-9
3 years agoCommunity Member
Only thing i am missing...is no need for injecting custom wrapper into the Illustrator svg or possibly a Illustrator script that automatically exports the SVG with the added wrapper. As that makes it way easier for non-scripters to use.
Apparently a script isnot that hard... this is a basic SVG export script from Illustrator.
Just have to figure out how and where to add the custom wrapper...
function exportFileAsSvg(path) {
const options = new ExportOptionsWebOptimizedSVG();
options.compressed = false;
options.coordinatePrecision = 3;
options.cssProperties = SVGCSSPropertyLocation.PRESENTATIONATTRIBUTES;
options.fontSubsetting = SVGFontSubsetting.None;
options.fontType = SVGFontType.SVGFONT;
options.svgResponsive = false;
app.activeDocument.exportFile(new File(path), ExportType.WOSVG, options);
}
exportFileAsSvg("X:\\foo.svg")