Hi Om,

i don’t know, what platforms you are using, but here is already a script I 
managed to run on Illustrator CC 2014 (Mac).

www.realcreation.com/S2F_Converter/AI_CC_2014.zip 
<http://www.realcreation.com/S2F_Converter/AI_CC_2014.zip>

It can be moved to Adobe Illustrator CC 2014 -> Presets -> <languageCode> -> 
scripts

and accessed through AI’s file menu -> scripts -> ExportFileAsFXG.

( 
http://www.illustratorhints.com/wp-content/uploads/2010/02/script-placement.png 
<http://www.illustratorhints.com/wp-content/uploads/2010/02/script-placement.png>
 )

It still needs S2F Converter installed or at least the xsl part of it (+ update 
path inside script).

Sorry I cannot provide you with a standalone plugin panel, as I’ve seen that 
it’d require C++, what I am not familiar with.

For now I just added standard SVG export settings, but you can manipulate them 
easily inside the script.

I will look into a vbscript version for Windows, for what I will have to update 
the converter as well.

Rgds.,

Sascha
 

> Am 14.11.2014 um 20:33 schrieb Sascha Ahrend <[email protected]>:
> 
> Well, I can’t promise any quick result, only that I will give it a try.
> 
> Conservatively estimated it shouldn’t be too complex.
> 
> There’s Adobe examples on exporting SVG, so adding a line to call the 
> converter when finished sounds feasible.
> 
> I’ll let you know.
> 
> Have a nice weekend,
> 
> Sascha
> 
> 
>> Am 14.11.2014 um 20:09 schrieb OmPrakash Muppirala <[email protected] 
>> <mailto:[email protected]>>:
>> 
>> Hey, thats good to know.  I should have probably waited for some more time
>> before killing the app :-)
>> 
>> It's really impressive that this big file got converted with this much
>> fidelity.  Awesome job!
>> 
>> I think I asked you this before, what do you think of creating a plugin
>> panel for Adobe Illustrator CC with this code?  Or is that too much to
>> ask?  I think this would be a great option for a seamless workflow, i.e.
>> being able to create FXG from the Illustrator itself.
>> 
>> Thanks again for this work.
>> 
>> Regards,
>> Om
>> 
>> On Fri, Nov 14, 2014 at 10:45 AM, Sascha Ahrend <[email protected] 
>> <mailto:[email protected]> <mailto:[email protected] 
>> <mailto:[email protected]>>> wrote:
>> 
>>> Hello Om,
>>> 
>>> with Harbs’ help I was able to dig into the case.
>>> 
>>> What I found is that the AI svg export (4.3 MB) is actually being
>>> converted, although it takes while to see the fxg result (3.3 MB).
>>> I tested it on a Mac Mini 2.5 GHz Intel Core i5 and the conversion inside
>>> the standalone app took approx. 3.5 minutes at >95% CPU usage.
>>> Then i performed the same test inside VirtualBox running Vista where it
>>> took even 5.5 minutes with the same CPU consumption.
>>> 
>>> The reason why the app remains unresponsive while converting on Windows is
>>> that it uses the internal Webkit XSL processor for SVG conversion, while on
>>> Mac it calls a native process that runs in the background.
>>> In task manager you can see the process running quite busy. After
>>> finishing the app becomes responsive again.
>>> (On Mac the fxg file appears immediately, but it takes some time before it
>>> gets its content.)
>>> Unfortunately both processors (which are based on libxslt) do not return
>>> any progress data, so I do not see a chance to add a progress bar to the
>>> app.
>>> 
>>> You can find the fxg output (77750 lines) here:
>>> http://www.realcreation.com/S2F_Converter/testfxg/testfxg.fxg
>>> 
>>> It looks like this (downscaled to 8.8%, please allow a moment to load):
>>> http://www.realcreation.com/S2F_Converter/testfxg/testfxg.html
>>> 
>>> Comparing it at a glance with the original file (
>>> http://mercury.io/wp-content/uploads/2014/09/ios8_vector_zoom_out.png 
>>> <http://mercury.io/wp-content/uploads/2014/09/ios8_vector_zoom_out.png> <
>>> http://mercury.io/wp-content/uploads/2014/09/ios8_vector_zoom_out.png 
>>> <http://mercury.io/wp-content/uploads/2014/09/ios8_vector_zoom_out.png>> )
>>> i can see the following differences:
>>> 
>>> - Bitmap images aren’t converted (that’s an actual limitation, although I
>>> will have a look to add external images to the conversion method).
>>> - Some masks seem missing or misplaced. (I will investigate.)
>>> - The SVG uses multiline text, while the FXG only single line (I will
>>> check the specs.)
>>> 
>>> I hope this helps.
>>> 
>>> Rgds,
>>> 
>>> Sascha
>>> 
>>> 
>>>> Am 12.11.2014 um 22:45 schrieb OmPrakash Muppirala <[email protected]
>>>> :
>>>> 
>>>> Sascha,
>>>> 
>>>> This is a great tool and I see a lot of potential in it.  Especially
>>> given
>>>> that Adobe has stopped supporting Export to FXG in Illustrator CC.
>>>> 
>>>> I tried a pretty detailed AI file from here [1], exported it to SVG.
>>> Then
>>>> I used your tool to try to export it to FXG.  Upon importing, the app
>>>> became unresponsive.  Can you please take a look and see what's going on?
>>>> 
>>>> Also, is this code available somewhere for us to take a look?
>>>> 
>>>> Thanks,
>>>> Om
>>>> 
>>>> [1] http://mercury.io/blog/ios-8-illustrator-vector-ui-kit-update
>>>> 
>>>> On Tue, Nov 11, 2014 at 10:20 AM, Sascha Ahrend <[email protected]>
>>> wrote:
>>>> 
>>>>> Hi Everyone,
>>>>> 
>>>>> 
>>>>> i updated S2F Converter, an open-source conversion tool for SVG or SWF
>>> to
>>>>> FXG conversion:
>>>>> 
>>>>> http://www.realcreation.com/S2F_Converter/ <
>>>>> http://www.realcreation.com/S2F_Converter/>
>>>>> 
>>>>> 
>>>>> It is now available for Windows and Mac.
>>>>> (Limitations on Win: Linear gradient rotation only along x/y-axis. No
>>>>> self-closing fxg tags.)
>>>>> 
>>>>> In addition, you can launch it through the command line now. I added
>>> some
>>>>> sample plugins for Eclipse-based IDEs.
>>>>> 
>>>>> See also this tutorial: http://www.youtube.com/watch?v=ZHlGfCi7pvw <
>>>>> http://www.youtube.com/watch?v=ZHlGfCi7pvw>
>>>>> 
>>>>> 
>>>>> In addition there is some SVG improvements like better AI compatibility,
>>>>> gradient fixes, polygon and polyline support.
>>>>> 
>>>>> On the SWF side, now multiple layers, frames, graphics (partially),
>>> movie
>>>>> clip (partially) are supported.
>>>>> 
>>>>> 
>>>>> If you still find it useful, I think this may be a good point for a
>>>>> donation.
>>>>> 
>>>>> 
>>>>> I hope you like it.
>>>>> 
>>>>> 
>>>>> Best Regards,
>>>>> 
>>>>> Sascha

Reply via email to