Copy multiple objects across multiple layers?

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
julian82
Posts: 22
Joined: Wed Mar 10, 2010 2:08 pm

Copy multiple objects across multiple layers?

Post by julian82 »

Hi,

Sorry for the poor subject description - but I'm not familiar with this feature or what it might be referred to as :|

In this video I was watching on AS7 physics ( http://www.youtube.com/watch?v=KfSs216DXlM ). At about 50 seconds in, there's a single layer with multiple purple/pink objects. The video goes too fast to see what action is performed, but immediately there are multiple layers which have each individual vector from the original 1 layer.

Does anyone know what this action is and how it's performed? Or was it a lot of manual work just sped up.. ?

Any info is appreciated, and sorry if this has been posted before but I couldn't find anything based on my search criteria.

[EDIT: I'm thinking they just stopped recording the video, manually created all the layers, then started the video again... ? ]
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post by heyvern »

That's a script I created to split a layer into multiple layers... uh... er... I guess this means I may have had something to do with those videos? Neither confirming nor denying. :)

I am trying to find that darn script. I had an issue during beta testing and accidentally deleted some custom scripts when updating the betas. Sadly I may have... dagnabbit... deleted it and will have to redo the script. I was trying to keep multiple copies backed up. It may turn up.

Check in the scripting forum here. Ramon Lopez created a tool that does something similar. Maybe that can work for you until I either find my script or recreate it.

-vern
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post by heyvern »

WOOOHOOO!!!

I found it! Phew!


http://www.lowrestv.com/images/files/hv_split_layer.zip

I will add this to the script forum as well but thought i would post it here first.

------------
Two ways to install the script:

AS Pro and Debut installation:

Put this script in the scripts/tool/ folder and add this line to your _tool_list.txt file as shown below:

Code: Select all

button	hv_split_layer		...
I don't have a icon for it yet. It will show up in your tool palette as a "?" in the spot you paste that line your _tool_list.txt file. You MUST add this line to the _tool_list.txt file. The script will only work as a button.

----------------------------------------

AS Pro only Menu Script installation:

Install in scripts/menu/

Select the script from the scripts menu in AS.

--------------------------------------

Instructions:

Run on a vector layer inside a group layer that has physics turned on.

This script ONLY works on vector layers with ALL CLOSED VECTOR SHAPES. Each shape must be a single closed vector to work properly. I hope to improve this later for other uses.

Once your layer is ready to "split" make sure all of the physics properties are set in this layer FIRST so that the split layers have those physics settings.

Click the tool button (or select the menu script if installed that way). The script will create one layer for each separate shape.

At the bottom of the newly created layers there will be the original layer with all the shapes which should be moved outside of the physics group layer. There is also an empty "template" layer. It will have the name of the original layer with "-Template" added on. Delete this layer. This is a blank template layer created by the script to duplicate for pasting in the shapes so all of them have the same physics settings. Unfortunately there is no way to delete or remove layers using the script interface so this has to be done by hand.

Make sure you keep the original layer after moving it out of the group layer so you can run the script again if needed.


-vern
julian82
Posts: 22
Joined: Wed Mar 10, 2010 2:08 pm

Post by julian82 »

This is great, thankyou so much for sharing :)

I was hoping to do something cool using text, this will make it so much easier! Nice work
User avatar
ulrik
Posts: 1087
Joined: Thu Aug 11, 2005 10:32 pm
Location: Stockholm Sweden
Contact:

Post by ulrik »

Thank you for sharing this Vern, great script!
Post Reply