Assign frames to timeline

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
ErikAtMapache
Posts: 94
Joined: Mon May 17, 2010 3:51 am

Assign frames to timeline

Post by ErikAtMapache »

This is a copy of I post I made in the general discussion forum. I thought I would put it here for future ease of searching.


I have a script I use to assign frames to the timeline. It can be found at:

http://StormCel.com/Files/EB_loopSwitch.lua (download by using right-click Save Link As...)

Place the file in the scripts directory. On my machine it is:
C:\Program Files\Smith Micro\Anime Studio Pro 9\Resources\Support\scripts\menu\Custom (I added a "Custom" directory for myself -- you can change this if desired)

Usage is:
Create switch layer
Add images to switch layer (I usually just drag them in from file manager)
Select switch layer and select a frame number as a starting point
Run the script
--The Starting Frame will filled is by default but can change it if needed
--The Interval is the number of frames between images (a value of 2 means a new image every 2nd frame, etc.)
--The Image # Interval is the number of images incremented every time a frame is added (usually you want 1)
-- Reverse adds images in reverse order

This is a script I modified that was originally made by David Rylander.

Hope this helps.
Erik
Post Reply