I am very new at coding and I am doing a school project in Blender. I have a character created and some animations (walk, stand) done. I have a program that moves the character and now I want to make the animations play while I control it.
I have four if statements (if pressing W go forward and all that) and that works. I am trying now to make the “standing” animation play while NONE of the keys are pressed, so I put it in the “else” statement. The armature has an Action actuator in the logic bricks, an I called it with python like this:
else: actani.action = “ARMATUREAction.002” actani.frameStart = 1.0 actani.frameEnd = 70 actani.blendIn = 5 actani.mode = 4 actani.priority = 1 co.activate = (“animacion”)
But when I run it it doesn’t work and it tells me this error:
Attribute error: “SCA_PythonController” object attribute “activate” is read-only
I have been looking for a solution but I found nothing. Could somebody help please?