如果你有一個透明的背景PNG,嘗試將其中的一個引入閃存和位圖跟蹤它。這應該讓你只有你的對象,節省你在每一幀「消除綠色形狀」的步驟。
如果這是可以接受的/你想要什麼,那麼你可以做的就是將一大堆幀作爲動畫片段導入到時間線中,然後使用jsfl腳本將它們一次全部位圖化。
這是我寫的一個jsfl腳本,它可以跟蹤位於許多幀(每幀有1個位圖)的位圖。複製內容並將其保存爲jsfl文件。
要運行它,將一串png導入到時間軸中,並選擇它們所在的所有幀。然後轉到「命令」 - >「運行命令」以跟蹤所選幀中的每個位圖。
var timeline = fl.getDocumentDOM().getTimeline();
// get selected frame numbers
var selectedFrameObject = timeline.getSelectedFrames();
var start = selectedFrameObject[1];
var end = selectedFrameObject[2];
fl.trace("Selected frames: "+ start +"-"+ end);
for(var counter = start; counter < end; counter++){
timeline.currentFrame = counter;
document.selectAll();
// you can play with these values to change the tracing parameters
document.traceBitmap(100, 8, "normal", "many corners");
document.selectNone();
}
是否有可能呈現每個對象的幀具有透明背景,保存爲PNG? – mitim 2013-02-19 10:54:14
是的,爲什麼不,因爲我要使用位圖精靈表 – 2013-02-20 09:09:42