Hi I tried the tutorial in blender 2.74 but it didn't work when i wrote the script for moviment and run the script it says: Python script fail, look in the console for now... here is the script: import bpy # Frame 1 bpy.data.objects['Cube'].Keyframe_insert(data_path='location', frame=1) # Frame 125 #bpy.ops.transform.translate(value=(0,0,5)) bpy.data.objects['Cube'].Keyframe_insert (data_path='location', frame=125) # Frame 250 #bpy.ops.transform.translate(value=(0,0,-5)) bpy.data.objects['Cube'].Keyframe_insert (data_path='location', frame=250)
really nice! exactly what i need, thanks you very much bro :D
perfect thanks a lot!
How can I select an object with Python? It just ignores the "Cube" or "Sphere" and sets the keyframe for the selected object in the outliner :/
Helped me a lot. Many Thanks.
Awesome, thanks!
Thanks, sir!! It really helped!
Thank You.
Worked well for me !! Thanx a lot!! When I try to run this on a Blender Game, nothing happens, do you know why? Thanx again!!
Hi
I tried the tutorial in blender 2.74 but it didn't work
when i wrote the script for moviment and run the script it says: Python script fail, look in the console for now...
here is the script:
import bpy
# Frame 1
bpy.data.objects['Cube'].Keyframe_insert(data_path='location', frame=1)
# Frame 125
#bpy.ops.transform.translate(value=(0,0,5))
bpy.data.objects['Cube'].Keyframe_insert (data_path='location', frame=125)
# Frame 250
#bpy.ops.transform.translate(value=(0,0,-5))
bpy.data.objects['Cube'].Keyframe_insert (data_path='location', frame=250)
You wrote Keyframe_insert instead of keyframe_insert.
just what i was looking for. thanks!