Blender 2.68, import script python

Fermé
Escienca Messages postés 409 Date d'inscription mercredi 12 janvier 2011 Statut Membre Dernière intervention 24 mars 2023 - 17 oct. 2013 à 20:36
Bonjour,

Je voudrais savoir comment exécuter simplement un script Python dans Blender 2.68, par exemple:

floor = box (pos=(0,0,0), length=4, height=0.5, width=4, color=color.blue)
ball = sphere (pos=(0,4,0), radius=1, color=color.red)
ball.velocity = vector(0,-1,0)
dt = 0.01

while 1:
rate (100)
ball.pos = ball.pos + ball.velocity*dt
if ball.y < ball.radius:
ball.velocity.y = abs(ball.velocity.y)
else:
ball.velocity.y = ball.velocity.y - 9.8*dt

Je voudrais qu'il s'exécute dans Blender au lieu de Visual-Python.

Merci

Source Script Python: http://doc.ubuntu-fr.org/python-visual