WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-24-2003, 09:30 PM
mdebrecht mdebrecht is offline
Member
 
Join Date: Mar 2003
Posts: 3
Smile <viewpoint>.setclip

I like the new interface to VRUT. Good Job! I just have a few quick questions:

It seems that when I try to clip a seperate viewpoint, the whole screen goes black. Similar code works for vrut, but doesn't seem to work with viz. Do you know what may be going wrong?

------------------------------------
import viz

viz.go()
viz.add('Layout.wrl')

window = viz.addwindow()
window.setposition(0, 380)
window.setsize(100, 100)

view = viz.addviewpoint()
window.setviewpoint(view)
view.setclip(0,40)

------------------------------------

Also, I noticed that Tkinter isn't included in viz's built-in python library. Do you know of a good way to import Tkinter?

Thanks,
Matthew
Reply With Quote
  #2  
Old 03-25-2003, 02:13 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi Matthew,

Instead of setting the clip at (0,40) try something like (0.01,40).
We'll try to fix this, but for now this should work.

As for Tkinter, it doesn't come with Vizard, but you should be able to download and install it separately. I'll try this out and get back to you on it.

-- farshid
Reply With Quote
  #3  
Old 03-27-2003, 02:30 PM
mdebrecht mdebrecht is offline
Member
 
Join Date: Mar 2003
Posts: 3
thanks for your reply. I already have Tkinter installed with Python; is there anyway to tell Vizard which directories to search when importing a module?
Reply With Quote
  #4  
Old 03-27-2003, 02:54 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi Matthew,

You have two options:

1) Place all the Tkinter files in the Vizard/bin/lib directory

2) At the beginning of your script before you import tkinter issue the following command:

import sys
sys.path.append(<path to tkinter library>)

Hope that works!

-- farshid
Reply With Quote
Reply


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 06:21 PM.


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