a egg file, pview can see it successfully, but codes couldn'

my codes are:

pandaActor = Actor.Actor(“111”, {“walk”:“222”})
pandaActor.reparentTo(render)
pandaActor.loop(“walk”)

the err is:
C:>python filename.py
DirectStart: Starting the game.
Warning: DirectNotify: category ‘Interval’ already exists
Known pipe types:
wglGraphicsPipe
(all display modules loaded.)
:util(warning): Adjusting global clock’s real time by 1.90735e-006 seconds.
:util(warning): Adjusting global clock’s real time by -3.14832 seconds.

So where is the bug?

Theres no bug really.

I would need a little more code to tell you 100% but I think its cus you dont have the camera pointing at him or he is to big or to small for you to see.

100% codes :

import direct.directbase.DirectStart
import math
from direct.actor import Actor
from pandac.PandaModules import *

pandaActor = Actor.Actor(“111”, {“walk”:“222”})
pandaActor.reparentTo(render)
pandaActor.loop(“walk”)
run()

and the window show : COA Distance : 1000.0

Is it too big? but in pview, it it suitable for the pview window

yea its to big or to small and you need to set the camera to look at it more better.

Try something like this: #note its the panda model I used.

import direct.directbase.DirectStart 
import math 
from direct.actor import Actor 
from pandac.PandaModules import * 


pandaActor = Actor.Actor("models/panda-model",{"walk":"models/panda-walk4"})
pandaActor.setScale(0.005,0.005,0.005) #makes the panda smaller
pandaActor.reparentTo(render) 
pandaActor.loop("walk") 

base.disableMouse() #disable mouse movement
base.camera.setPos(0,-15,0) #set the camera pos to see the panda
run() 
 

yes, success! Thank you very much.

Is there a standard about the model’s size?
so if there is a actor, how can I get its size , and how much should I setScales?

Your welcome.

No there isnt a set standard really.

That depends on how big or small you want it to be, really its just gussing unless you all ready know how big the model is then you can just do the math.

I think scaling a model to world size is best.
For most people its 1 meter = 1 panda3d unit. For me i deal with spaceships its 1km = 1 panda3d unit. But i think its good when you can relate panda3d units with real life. If you have average high being 17.5 make up units how many make up units is a door or a car?

Choose some thing realistic and stick to it.