ToLayer is the variable with the "target" layer ID (for copying and pasting bones from one layer to another with one script). This works GREAT... I just thought I could target the skeleton of another layer without changing layers.
local prevLayer = moho.layer
moho:SetSelLayer(ToLayer) -- switch to another layer
-- do your thing on ToLayer
moho:SelSelLayer(prevLayer) -- switch back to previous layer
Trying to figure out how to access bones in another layer with a layer script. This would during user interaction with the bones so I can't switch to another layer.
So is there no way to access the skeleton of another layer?
I am trying to come up with a way to control bones on one with bones on another layer using only one script... but I can't figure out how to access the bones on another layer.
I would even be happy to access the skeleton of a child layer of a bone layer. There must be a way.
There were rumors that someone had done this but it never got finished or posted.