![]() |
|
|
|
#1
|
|||
|
|||
|
Hmmm, I tried the following code, but, after the objects load, I get the following output in the output window
-------------------------- Loading File: mplm.wrl Loading File: truss2.wrl ** Load Time: 1.29 seconds TypeError: an integer is required ----------------------- import viz viz.go() mplm = viz.add('mplm.wrl') truss = viz.add('truss2.wrl') viz.clustermask(viz.CLIENT1) viz.windowsize(320,240) ##viz.clusteroffset(30,0,0) viewpoint = viz.add(viz.VIEWPOINT) #viewpoint.rotate(0,1,0,20) viewpoint.translate(0,0,-4) viz.clustermask(viz.ALLCLIENTS) viz.framerate() |
|
#2
|
|||
|
|||
|
Hi,
You've quickly discovered the current limitation to the cluster feature. When adding objects, they need to be added for every computer. Also, you don't need to add a separate viewpoint for each computer. You can use one viewpoint, just set the mask to a different client when changing the viewpoint. So try changing your code to the following: Code:
viewpoint = viz.get(viz.MAIN_VIEWPOINT) viz.clustermask(viz.CLIENT1) viz.windowsize(320,240) ##viz.clusteroffset(30,0,0) #viewpoint.rotate(0,1,0,20) viewpoint.translate(0,0,-4) viz.clustermask(viz.ALLCLIENTS) |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|