Page 1 of 1
Distribute layers to frames
Posted: Mon Nov 23, 2020 1:38 pm
by jahnocli
Could anyone tell me whether there is a script to take a bunch of vertical layers and distribute them as a sequence of frames? I've had a look in the scripting documentation, and I can't see anything like that. It would be really useful, so I'd be amazed if it didn't exist.
Re: Distribute layers to frames
Posted: Mon Nov 23, 2020 3:48 pm
by VĂctor Paredes
I remember a script which automatically added keys to a switch layer, following the order of the layers it contained.
I haven't been able to find it yet, but I'm sure it should be somewhere in the forum.
Re: Distribute layers to frames
Posted: Mon Nov 23, 2020 5:07 pm
by jahnocli
Thanks for the reply Victor -- I'll try searching the forum (although in the past that has never been that successful!)
Re: Distribute layers to frames
Posted: Tue Nov 24, 2020 3:59 am
by Maestral
Could some of
Mynd Tools do?
Re: Distribute layers to frames
Posted: Tue Nov 24, 2020 5:40 am
by SimplSam
I thought I had also seen this before, but could not find it -- so ...
A basic tool is available at:
https://github.com/SimplSam/moho-switch ... ch2fbf.zip - with icon. I may update it later to add other bits.
To use, ensure the target layers are grouped into a Switch layer as uniquely named sub-layers. Select the Switch layer, and run the tool.
You can optionally set (using Dialog):
- FBF Interval: - The Frame by Frame interval. (default: 1)
- Start with: - The translation sort order: Top Layer for Top to Bottom (top => 1st frame), Bottom Layer for Bottom to Top (bot => 1st frame). (default: Top Layer)
Re: Distribute layers to frames
Posted: Tue Nov 24, 2020 11:54 am
by jahnocli
Many thanks SS - I'm indebted to you once again! (There didn't seem to be any access for setting sorting direction or fbf intervals -- am I missing something, or are these future possibilities?).
EDIT: Ah, I see -- just looked at the script, and these are a couple of lines that can be changed to affect the above outcomes; easy enough to tinker about with. Thanks again!
...and thanks Maestral for your suggestion -- that is a great collection of scripts, to be sure..
Re: Distribute layers to frames
Posted: Wed Nov 25, 2020 5:56 am
by SimplSam
Hi. I have updated to add a Dialog for setting the configuration parameters.
Re: Distribute layers to frames
Posted: Wed Nov 25, 2020 11:30 am
by jahnocli
Works perfectly! You, sir, are a gentleman and a scholar.
Re: Distribute layers to frames
Posted: Wed Nov 25, 2020 5:31 pm
by F.M.
Thanks for your generosity!