WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 10:33 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC