Can't get the ParentSkeleton anymore
Posted: Fri Apr 10, 2026 5:44 am
Just curious about It doesn't seem to work anymore. Been fixing up and playing around with some old scripts and for the life of me this doesn't work. Can't get bones from the parent skeleton. Assigning parentskeleton to a variable is always nil or null empty. It was working... uh... er... many versions ago. Probably version 9.
I keep finding references to this in some scripts:
Is there a "new" way to access the parent skeleton? One extra bit of info, the script looking for the parent skeleton is a bone layer. I need to transfer movement of a bone in a sub layer to a bone in the parent bone layer.
Code: Select all
moho:ParentSkeleton()I keep finding references to this in some scripts:
Code: Select all
local parentSkeleton = false
local skel = moho:Skeleton()
if (skel == nil) then
if (self:ShouldUseParentSkeleton(moho)) then
skel = moho:ParentSkeleton()
parentSkeleton = true
end
if (skel == nil) then
return
end
end