hello I started maxscript on MAX 2024 a little while ago and I wanted to create my bones chain from point
and I did but there is a problem in my code
when , in the index forloop I told him to choose the second information from my array he answer me with an error that I don’t understand ( pos is undefined , and he still applies the code haha )
here is my code
POS_BODY = #()
rollout myRollout “Create Bones”
(
button createButtonPoint “Create Point”
button createButtonBones “Create Point”
on createButtonPoint pressed do
POS_BODY = #(
( PRE_SHOULDER = sphere pos: [-4.51,-3,180.131] wirecolor:red radius:1.5),
( SHOULDER = sphere pos: [-19.39,-0.013,176.084] wirecolor:red radius:1.5),
( ELBOW = sphere pos: [-47.155,2.628,163.611] wirecolor:red radius:1.5 ),
( FORARM = sphere pos: [-72.66,-0.699,152.156] wirecolor:red radius:1.5 ),
( HAND = sphere pos: [-78.037,-1.401,149.741] wirecolor:red radius:1.5 )
)
FN bonetest bar =
for i = 1 to bar.count do
(
boneA = boneSys.createBone bar[i].pos bar[(i)+1].pos [1,0,0]
)
on createButtonBones pressed do
bonetest POS_BODY
)
– Créer la fenêtreb
createDialog myRollout 300 60
does anyone have a solution and any advice on how to save me from having to deal with these kinds of little problems, which for me are not little problems haha.