WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-10-2011, 08:28 AM
jlesquembre jlesquembre is offline
Member
 
Join Date: Nov 2011
Posts: 2
Events in a cluster

Hi,

I'm running a cluster with several clients, all in the same computer.I have a problem with events, I want to make some actions if the user makes a click. If I click in the master window, everything is fine, but is not possible to make a click in any client window. Any suggestion?

Thanks.
Reply With Quote
  #2  
Old 11-10-2011, 11:50 AM
jlesquembre jlesquembre is offline
Member
 
Join Date: Nov 2011
Posts: 2
Ok, I got it, I should use this code
Quote:
def onmouse(button):
client = viz.cluster.getClient()
print 'Mouse pressed on client',client,'the button',button

viz.callback(viz.MOUSEDOWN_EVENT,onmouse,viz.ALLCL IENTS)
But next problem is, how can I pick an object in clientX? For master or client1 works, but for others clients not. Any idea why?
Reply With Quote
  #3  
Old 11-16-2011, 05:03 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Clustering is not really meant to be used this way. Cluster clients don't actually execute any Python code. They just receive commands from the master to perform basic low-level commands (e.g. add objects, set position, etc...). Clustering is only meant to be used when you want to clone the output of a script with only slight changes (e.g. view offset, fov). Picking is not supported on the clients.
Reply With Quote
Reply

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about cluster replacement mizutani_jun Vizard 1 02-18-2011 02:49 PM
Question about GUI and CLUSTER mizutani_jun Vizard 2 01-02-2011 03:35 PM
Problem with server Events vOliver Vizard 2 09-15-2010 02:21 PM
Cluster Help videcuk Vizard 12 09-21-2007 02:14 PM
quad_buffer cluster John P Vizard 4 06-07-2006 10:01 PM


All times are GMT -7. The time now is 11:56 AM.


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