Using Fr0st with Electric Sheep

Right now, it’s not easy to use fr0st for generating sheep that are accepted by the electric sheep. Fr0st is built on flam3 2.8 (the latest version), while electric sheep is still on 2.7. This means there are incompatibilities in the file format, invalid variations, etc.

I’ve been working on a script that addresses this problem. It’s still a beta version, so please don’t trust its output blindly, and let me know of any problems. You can get the script here:

http://dl.dropbox.com/u/2173295/fr0st/electricsheep_export.py

This script will take the currently selected flame, attempt to convert it, and save it to a separate file.

Advertisements

3 Responses to Using Fr0st with Electric Sheep

  1. Phssthpok says:

    First, thanks for a great piece of software.

    However, I’ve found a problem with this script – the conversion from color_speed to symmetry is not applied to the final xform if one is present.

    I’ve dug around in the code to try to find how the final xform is implemented in the flame but I haven’t been able to track it down.

    Any chance you can provide a revised script or point me at the necessary data/class definition please ?

    • Vitor says:

      Hi Tim,

      The final xform is implemented as the flame.final attribute (None if not set). To iterate over all xforms, the iter_xforms() function should be preferred for this reason. I’ve corrected the script, you can just download again to get the fix. What Erik suggested on the mailing list should also work.

      Flame objects and related classes are all implemented in fr0stlib/__init__.py, btw, in case you want to take a peek yourself.

      Vitor

  2. Phssthpok says:

    Thanks Vitor,

    Can I suggest this needs to be changed in the check_compatibility routine as well ?

    Tim.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: