how to turn an animlayer into a stair

Please use this part to report bugs & errors, ask questions & "How to..."
Post Reply
User avatar
Peter Wassink
Posts: 4437
Joined: 17 Feb 2006, 15:38
Location: Amsterdam
Contact:

how to turn an animlayer into a stair

Post by Peter Wassink »

i need a very simple script
but to built a george script from scratch is really over my head.

i need to break up an animation into a stair in which the steps are formed by the individual instances.
see image:
stairscript1.jpg
stairscript2.jpg
as you can see i half solved it by using actions.
but i was wondering how hard it would be to make it fully automatic via a george script.
anyone care to explain?
Peter Wassink - 2D animator
• PC: Win11/64 Pro - AMD Ryzen 9 5900X 12-Core - 64Gb RAM
• laptop: Win10/64 Pro - i7-4600@2.1 GHz - 16Gb RAM
User avatar
ZigOtto
Posts: 4102
Joined: 17 Feb 2006, 22:50
Location: south-Petazonia

Re: how to turn an animlayer into a stair

Post by ZigOtto »

a pity your initial sequence was already timed (exposed in 2's),
if it would be a sequence of "single-frame" instances, you could go with only 2 commands :
- Layer: Select All Frames
- Layer: New Layers from Selected Frames,

in your example, (because you're in 2's), I would do this :
- Modify Project / framerate = 12,5 (if you're initially at 25f/s) with "Stretch to new framerate" enable,
(to convert your instances sequence in one's)
- Select All Frames,
- Layer: New Layers from Selected Frames,
- Modify Project / framerate = 25 with "Stretch to new framerate" enable,
(to get back your double exposures)

of course, it's a workaround, because we haven't actually a "New Layers from Selected Instances"
and yes, I think a little script should do this stair-timed effect, respecting the instances.
User avatar
Peter Wassink
Posts: 4437
Joined: 17 Feb 2006, 15:38
Location: Amsterdam
Contact:

Re: how to turn an animlayer into a stair

Post by Peter Wassink »

ZigOtto wrote:a pity your initial sequence was already timed (exposed in 2's),
if it would be a sequence of "single-frame" instances, you could go with only 2 commands :
- Layer: Select All Frames
- Layer: New Layers from Selected Frames,

in your example, (because you're in 2's), I would do this :
- Modify Project / framerate = 12,5 (if you're initially at 25f/s) with "Stretch to new framerate" enable,
(to convert your instances sequence in one's)
- Select All Frames,
- Layer: New Layers from Selected Frames,
- Modify Project / framerate = 25 with "Stretch to new framerate" enable,
(to get back your double exposures)

of course, it's a workaround, because we haven't actually a "New Layers from Selected Instances"
and yes, I think a little script should do this stair-timed effect, respecting the instances.
thank you Zig, that was helpfull!
Peter Wassink - 2D animator
• PC: Win11/64 Pro - AMD Ryzen 9 5900X 12-Core - 64Gb RAM
• laptop: Win10/64 Pro - i7-4600@2.1 GHz - 16Gb RAM
User avatar
D.T. Nethery
Posts: 4225
Joined: 27 Sep 2006, 19:19

Re: how to turn an animlayer into a stair

Post by D.T. Nethery »

Yes, thanks to Zig for that explanation of how to turn an Anim layer to "stair".

This explanation should go into the User Manual along with the screen grabs similar to Peter's above .



-
Post Reply