View Single Post
  #1  
Old 02-01-2007, 07:28 PM
AlyssaK AlyssaK is offline
Member
 
Join Date: Dec 2006
Posts: 16
<multimedia:image>.getSize

Hi everyone,

I'm using the example from the documentation <multimedia:image>.getSize

import viz
viz.go()

tex = viz.add('box.wrl')

size = tex.getSize()

print 'The texture is',size[0],'x',size[1]

and i recieve the following error:

Traceback (most recent call last):
File "<string>", line 11, in ?
File "testing.py", line 8, in ?
size = tex.getSize()
AttributeError: 'VizChild' object has no attribute 'getSize'

I must be overlooking something if you can help please post a response. My intention is to make sure that all images are scaled to a certain size.

Thanks, Alyssa.
Reply With Quote