Hola a todos, alguien me podría resolver este código:
Rollout rollTentacle "Tentacles".
(.
Spinner UInBones "Number of Bones:" type:#integer range:[0,99999,5].
Spinner UIBonesLength "Bones Length:" type:#float range:[0,9999,30].
Button UICreate "Create".
On UICreate pressed do.
(.
Undo on.
(.
Punto=point().
Punto, transform= matrix3 1.
PrevNode=punto.
AttributesIns=attributes TentaclesAttributes.
(.
Parameters paramsTA rollout:rollTA.
(.
FWeightManual type:#float ui:UIWeightManual default:0 tFWeightProcedural type:#float ui:UIWeightProcedural default:100.
Frec type:#float ui:uiFrec default:10 tFAmplitudeB type:#float ui:UIAmplitudeB default:1 tFAmplitudeE type:#float ui:UIAmplitudeE default:2 tFPhase type:#float ui:UIPhase tFOffset type:#float ui:UIOffset.
).
Rollout rollTA "Tentacle_Parameters".
(.
Group "Wave Parameters" t(.
Spinner UIFrec "Frecuency:" range:[-9999,9999,0] t spinner UIAmplitudeB "Amplitude B:" range:[-360,360,0] t spinner UIAmplitudeE "Amplitude E:" range:[-360,360,0] t spinner UIPhase "Phase:" range:[-9999,9999,0] t spinner UIOffset "Offset:" range:[-9999,9999,0] t) tgroup "General Weights" t(t slider UIWeightManual "Manual:" range:[0,100,0] t slider UIWeightProcedural "Procedural:" range:[0,100,0] t).
).
).
Addmodifier punto (EmptyModifier()).
Punto, modifiers[1].name="WaveControl".
Custattributes, add punto, modifiers[1] attributesIns.
TAtt=punto, modifiers[1]. TentaclesAttributes.
TAtt. FWeightManual, controller=Bézier_float().
TAtt. FWeightProcedural, controller=Bézier_float().
TAtt. Frec, controller=Bézier_float().
TAtt. FAmplitudeB.controller=Bézier_float().
TAtt. FAmplitudeE.controller=Bézier_float().
TAtt. FPhase, controller=Bézier_float().
TAtt. FOffset, controller=Bézier_float().
N=UInBones, value.
For i=1 to n do.
(.
BoneVar=bonesys, createbone [(i-1)*UIBonesLength, value,0,0] [i*UIBonesLength, value,0,0] [0,0,1].
BoneVar, parent=prevNode.
BoneVar, rotation, controller=rotation_list().
ScriptVar=euler_xyz().
BoneVar, rotation, controller, available, controller=ScriptVar.
ScriptVar, z_rotation, controller=float_expression().
ScriptVar=ScriptVar, z_rotation, controller.
ScriptVar, addScalartarget "Frec" TAtt. Frec, controller.
ScriptVar, addScalartarget "AB" TAtt. FAmplitudeB.controller.
ScriptVar, addScalartarget "AE" TAtt. FAmplitudeE.controller.
ScriptVar, addScalartarget "Phase" TAtt. FPhase, controller.
ScriptVar, addScalartarget "Offset" TAtt. FOffset, controller.
StringVar="degToRad(sin(F*Frec+Phase+Offset*"+(((i-1)/(n-1) as float) as string)+")*(AB*"+((1.0-(i/n as float)) as string)+"+AE*"+(((i/n as float)) as string)+"))".
ScriptVar. SetExpression StringVar.
BoneVar, rotation, controller.weight[1].controller=float_expression().
BoneVar, rotation, controller.weight[1].controller, addScalartarget "Weight" TAtt. FWeightManual, controller.
BoneVar, rotation, controller.weight[1].controller, setExpression "Weight/100".
BoneVar, rotation, controller.weight[2].controller=float_expression().
BoneVar, rotation, controller.weight[2].controller, addScalartarget "Weight" TAtt. FWeightProcedural, controller.
BoneVar, rotation, controller.weight[2].controller, setExpression "Weight/100".
PrevNode=BoneVar.
).
).
).
).
Createdialog rollTentacle 180 80.
Me manda un error en la lista MaxScript en el No 41 y el No 42 addmodifier punto (EmptyModifier()).
Y diga me cual es la solución para qué me funcione en la versión 3dsmax2012 y se los agradezco mucho y.
Espero una respuesta suya gracias.