BlenderでPythonを使って遊ぼう。 1 中村理瑞 2024年2月17日 15:46 Blenderhttps://www.blender.jp/「Pythonコード」import bpyfrom math import sinstart_pos = (0,0,0)ob = bpy.context.objectframe_num = 0for i in range(0,100): bpy.context.scene.frame_set(frame_num) ob.location = (0,-i,sin(i) * 3) ob.scale = (1,1,1 + sin(i)) ob.keyframe_insert(data_path = "location",index = -1) ob.keyframe_insert(data_path = "scale",index = -1) frame_num += 5 #Blender #python #animation #python #Blender #python初心者 #animation 1 この記事が気に入ったらサポートをしてみませんか? 記事をサポート