Page 1 of 1
					
				Distribute layers to frames
				Posted: Mon Nov 23, 2020 4:38 am
				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 6:48 am
				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 8:07 am
				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: Mon Nov 23, 2020 6:59 pm
				by Maestral
				Could some of 
Mynd Tools do?
 
			 
			
					
				Re: Distribute layers to frames
				Posted: Mon Nov 23, 2020 8:40 pm
				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 2: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: Tue Nov 24, 2020 8:56 pm
				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 2:30 am
				by jahnocli
				Works perfectly! You, sir, are a gentleman and a scholar.
			 
			
					
				Re: Distribute layers to frames
				Posted: Wed Nov 25, 2020 8:31 am
				by F.M.
				Thanks for your generosity!