increasing the camera range

Hi, I was wounding how do you go about increasing the camera range so you can see father then the normal set up?

Also, I was wounding why this doesnt seem to work? I open a txt file and took a line from it to be town, then put town into the loader.loadModel. It works if I just put “towns/a” but not with this setup.

	f = open("networking/Users/Mradr.txt","r")
	lineList = f.readlines()
	f.close()
	print lineList[2]


	town = lineList[2] + "\n"
	#Load the first environment model town.egg 
	environ = loader.loadModel(town) 
	environ.reparentTo(render) 
	environ.setScale(0.25,0.25,0.25) 
	environ.setPos(0,0,0)

Error:
“towns/a”

:loader(error): Couldn’t load file “towns/a”

.egg: not found on model path (currently: “/c/Documents and Settings/Owner/Deskt
op/game;/c/Panda3D-1.4.2/etc/…;/c/Panda3D-1.4.2/etc/…/models”)
Traceback (most recent call last):
File “town1.py”, line 93, in ?
World()
File “town1.py”, line 27, in init
environ.reparentTo(render)
AttributeError: ‘NoneType’ object has no attribute ‘reparentTo’

you add a new line

 + "\n" 

for no reason at all. I would use

 town = lineList[2].strip()

instead.
oh and use

 print repr(lineList[2])

to get its programming REPResentation.

Thanks treeform, it work, but what is .strip()? (This was the key to it working.)

As for the “\n” I was just doing a test really, wasnt sure if it was the readlines() or what.’

Now just need to know how to increase the camera range then the default.

docs.python.org/lib/string-methods.html

Thanks ^.^ That helps me out alot.