i have a fish model.
i'm trying to set the entityalpha of it's fins to 0.4
EntityAnimAlpha(fish_model,0.4)
Function EntityAnimAlpha(m,a#)
mymeshname$=EntityName(m)
;"topfin is a group of fish_model"
If mymeshname="topfin" Then
EntityAlpha m,a#
EndIf
For i=1 To CountChildren(m)
ww=GetChild(m,i)
EntityAnimAlpha(ww,a#)
Next
End Function
the problem is when I do a CountChildren(fish_model) I get a result of 2
but the model have more than 50 joints and 9 groups
i'm trying to set the entityalpha of it's fins to 0.4
EntityAnimAlpha(fish_model,0.4)
Function EntityAnimAlpha(m,a#)
mymeshname$=EntityName(m)
;"topfin is a group of fish_model"
If mymeshname="topfin" Then
EntityAlpha m,a#
EndIf
For i=1 To CountChildren(m)
ww=GetChild(m,i)
EntityAnimAlpha(ww,a#)
Next
End Function
the problem is when I do a CountChildren(fish_model) I get a result of 2
but the model have more than 50 joints and 9 groups