I have an animation of a person standing up. It consists of a
movieclip with 20 consecutive keyframes all on one layer - each
keyframe has a unique vector "drawing". (This is a stopframe animation
rather than a tween, exported from a 3D program).The drawings are
stylised so they only contain about 8-10 colours. I want to seperate
out all the colours, so I have a movieclip with 20 keyframes, 8-10
layers, and only the white fills on one layer, the red on another,
etc.

It's definitely possible in JSFL but probably pretty awkward. Unfortunately, the Elements array (a property of the Frame object) treats all shape elements on the stage as a single Shape object unless they're in groups. So you'll have to delve pretty deep to get the information you need - I guess you'd need to loop through the Shape.contours array, and I'm not even sure you can select a shape that way in order to cut and paste it. If you can't do that, then you'd have to select the shapes by looping through the stage and selecting points until you've picked up every shape - not exactly 100% reliable!

What might be a better option would be to semi-automate it: create a custom tool with which you can click an object on the stage, which selects the object, checks its fill colour and distributes it appropriately, either to a new or an existing layer. This would be reasonably easy to do and would give you a fairly quick job of tidying up.

Danny
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to