You happily started to build a model inside a bone layer. Perhaps you do multiple vector layers prepared for shape order (for exapmple limbs avobe or behind the body). But finaly you realize that those shapes should go sometimes avobe and some times behind the others. Mmm some solutions to the problem: duplicate the layer and use visibility option (this should be done at he end of the animation to maintain animation of the duplicate layer same as original...) or use sort layers by true distance and animate them properly (but you have to sort all the layers at the same time for a proper layer ordering... maybe with actions...)
Finally you decided to put all the shapes in a single layer and use a switch layer instead a bone layer (remember switch layers are bone layers too!!!). In this way you can duplicate the vector layer and properly order the shapes and animate them thru time by a switch keyframe. Remember that all the layers are moved by bones like the original because bone binding is maintained. The only difference is the shape order.
How can I convert this bone layer into a switch layer and save all my bone setup?
You have to do this
1) MAKE A BACK UP OF YUOR ORIGINAL FILE

2) Search for this section in your moho / anme file. You have only serach for the name of the bone layer: "bone-layer" in this case. Change the layer_type value from 4 to 5.
Code: Select all
### layers
layer_type 4
{
### generic layer values
name "bone-layer"
quality_flags 1022
origin 0 0
parent_bone -2
visible true
render_only false
edit_only false
scale_compensation true
rotate_to_follow false
face_camera false
masking 0
blend_mode 0
camera_immune false
dof_immune false
Code: Select all
### bone layer values
expanded true
group_mask 0
depth_sort false
distance_sort false
Code: Select all
### switch layer values
expanded true
switch_data ""
switch_interpolation false
switch_keys
[
keys 1
0 0 0.1 0.5 ""
]
The best thing is to start form a switch layer from the begining but if you have this situation this could help.
I readed this tip from heyvern inside another thread but now I cannot find it now.
Hope it were useful.
*****PLEASE MAKE BACKUP FIRST!!!*********
Regards
Genete