I’m trying to run this simple script below, but for some reason myFunction never gets called.
With DirectStart it is working, but at the moment I don’t want to use DirectStart.
It somehow works withpout DirectStart if I use a negative number, but that isn’t right.
Maybe someone can help me.
Greetings
Revington
used system:
Windows XP SP3
Python 2.6.6
Panda3D 1.7.0
It is certainly possible. It means you have to do the setup stuff that would normally be done by importing DirectStart (or by creating a ShowBase instance). But why not just import DirectStart (or create a ShowBase)? This sets up all sorts of useful things that many subsystems in Panda assume will have already been set up.
If your only goal is to avoid opening a window, set “window-type none” in your Config.prc, before you import DirectStart. Plenty of examples of people doing this in the forums.