

About the curvature issue... ARGh!

...Well, THANK YOU (as always) for be there! Now I'll continue investigating about all this a little more, CIAO!
Moderators: Víctor Paredes, Belgarath, slowtiger
Code: Select all
function xDrawAllBones(moho,view)
local bone,skel
if (moho.layer:LayerType() == MOHO.LT_BONE) then
skel= moho:Skeleton()
else
skel= moho:ParentSkeleton()
end
if (skel == nil) then return end
local gfx= view:Graphics()
local vec1= LM.Vector2:new_local()
local vec2= LM.Vector2:new_local()
gfx:SetSmoothing(true)
gfx:SetColor(255,0,0)
local m= LM.Matrix:new_local()
moho.layer:GetFullTransform(moho.frame,m,moho.document)
gfx:Push()
gfx:ApplyMatrix(m)
for i= 0,skel:CountBones() - 1 do
bone= skel:Bone(i)
vec1:Set(0,0)
vec2:Set(bone.fLength,0)
if (moho.frame == 0) then
bone.fRestMatrix:Transform(vec1)
bone.fRestMatrix:Transform(vec2)
else
bone.fMovedMatrix:Transform(vec1)
bone.fMovedMatrix:Transform(vec2)
end
gfx:DrawLine(vec1.x,vec1.y,vec2.x,vec2.y)
end
gfx:Pop()
gfx:SetSmoothing(false)
view:Refresh()
end
Code: Select all
local name = mesh:Group(i):Name()
mesh:SelectGroup(name)
Code: Select all
local i = 123
local s = tostring(i)
print (type(s), s)
Code: Select all
string 123