Problems with sceneEditor

error saving with an egg file loaded:

Error: 3
NameError Exception in Tk callback
  Function: <bound method myLevelEditor.saveAsScene of <__main__.myLevelEditor instance at 0x0359E778>> (type: <type 'instance method'>)
  Args: ()
Traceback (innermost last):
  File "C:\Panda3D-1.0.3\Pmw\Pmw_1_2\lib\PmwBase.py", line 1747, in __call__
    return apply(self.func, args)
  File "sceneEditor.py", line 951, in saveAsScene
    f.SaveFile(AllScene,fileName,self.CurrentDirName,0)
  File "seFileSaver.py", line 161, in SaveFile
    modelData=EggData()
NameError: global name 'EggData' is not defined

error when ParticleFX button is clicked:

Error: 6
TypeError Exception in Tk callback
  Function: <function <lambda> at 0x03696E28> (type: <type 'function'>)
  Args: ()
Traceback (innermost last):
  File "C:\Panda3D-1.0.3\Pmw\Pmw_1_2\lib\PmwBase.py", line 1747, in __call__
    return apply(self.func, args)
  File "sceneEditor.py", line 332, in <lambda>
    button = Button(buttonFrame, image = element, command=lambda n=i : self.buttonPushed(n))
  File "sceneEditor.py", line 373, in buttonPushed
    self.openParticlePanel()
  File "sceneEditor.py", line 1185, in openParticlePanel
    self.particlePanel=seParticlePanel.ParticlePanel()
  File "seParticlePanel.py", line 51, in __init__
    pe.reparentTo(self.emitter)
  File "NodePath", line 10365, in reparentTo
    None
  File "NodePath", line 1075, in __overloaded_reparentTo_ptrNodePath_ptrConstNodePath
    None
TypeError: Invalid argument 0, expected <NodePath>

Sorry about these… nobody around here used the Scene Editor this semester, so it needs a little maintenance.

The first one is a known bug… the SceneEditor is using the “EggData” module, but I didn’t include that in the distribution. Duh. I’m fixing it in 1.0.4. Elsewhere in the forums, David explains the workaround (which involves genpycode). I can’t remember it off the top of my head.

The second one is a bigger problem, it needs some actual repair. Until then, you can use the particle sample program to bring up the particle panel, and design your particle systems.

when is 1.0.4 expected? until then, is there any way i can just download the EggData module? can i grab it if i download the full source for panda?

Hello!

The info on how to get the egg data is in the post by drwr at:

discourse.panda3d.org/viewtopic.php?t=374

(I believe the 4th post down :slight_smile:

Good Luck!
-Nick