El autor here en el punto 17.20-17.50 menciona que puede acceder a BPY con el intérprete estándar de Python en el futuro. Ya tiene 1 año de edad, entonces, ¿cómo puedo acceder al BPY con la consola de python estándar?¿Cómo puedo acceder a BPY en la consola de python estándar? BPY es el Blender-python -thing
Trial 0: roundaround solución al no trabajar con subproceso dentro de Blender
subprocess.call(['vim', 'test.py']) # some editing of BPY -file with Vim (not working currently) subprocess.call(['python', 'test.py']) # trying to execute the python -file (not working currently)
Prueba 1: no trabajan fuera de Blender
$ cat cubes.py import bpy mylayers = [False]*20 mylayers[0] = True add_cube = bpy.ops.mesh.primitive_cube_add for index in range(0, 5): add_cube(location=(index*3, 0, 0), layers=mylayers) $ python cubes.py Traceback (most recent call last): File "cubes.py", line 1, in <module> import bpy ImportError: No module named bpy
¿Qué el primero tiene que ver con el segundo? ¿Está intentando editar 'test.py' con vim desde una llamada de subproceso y falla? – jdi
Sí. y eso no funcionará – jdi
... novato similar q [aquí] (http://avp.stackexchange.com/questions/4145/how-to-create-a-rolling-ball-with-python-in-blender) acerca de usando Blender-python, tratando de hacer una bola animada. – hhh