Question:
Blender python help!!?
anonymous
2011-07-17 13:26:15 UTC
I am creating a golf game on Blender.
I already have knowledge and experience in python programming but when it comes to blender programming, I come totally flabbergast and confused.
Basically I need to know how to do 2 things in blender programming that I think may help me.
+ How to refresh the screen/ create a main loop for the script to keep on running on blender.
+ How to set the frame rate by python scripting for blender.
I know blender already automatically offers me the option to set the frame rate, BUT I need to know how to set it in python if it is possible, so don't tell me to use the automatic function.
Three answers:
?
2011-07-18 21:16:59 UTC
It depends on what version you are using.

I'm still using version 2.49 because I don't want to change my games over to 2.5, so I'm waiting till I finish them.

If you are using 2.49, use this link for the documentation:

http://www.blender.org/documentation/249PythonDoc/GE/index.html



If you are using 2.5, use this link

http://www.blender.org/documentation/blender_python_api_2_57_release/#game-engine-modules



To run a script inside a game, you will need an object to initialize it.

Use the logic screen, add a sensor, probably a delay(0 delay, rep on) for constant refresh and connect it to a python controller.



Hopefully the documentation will help.
anonymous
2014-09-13 15:23:55 UTC
Buongiorno,

Se non sai dove puoi scaricare gratis Blender , puoi scaricarlo da qui: http://bitly.com/1m0vzIu



funziona perfettamente!

Un caro saluto
1988
2011-07-17 13:30:11 UTC
Well that was a disappointment, I presumed you had a python in a blender.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...