|
From: Bruce S. <Bru...@nc...> - 2008-05-26 02:09:11
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
I'm not sure what you're trying to achieve. I should comment that this
won't actually work in Visual 4 because you can't transfer something in
a frame in one window to a different window, because in Visual 4 a
frame is more fully a container. For example, you can make a frame
visible or invisible. <br>
<br>
Bruce Sherwood<br>
<br>
<br>
Kadir Haldenbilen wrote:
<blockquote cite="mid:593...@we..."
type="cite">
<style type="text/css"><!-- DIV {margin:0px;} --></style>
<div
style="font-family: times new roman,new york,times,serif; font-size: 12pt;">
<div>I know it looks clumsy and may need some double coding, but it
may give some of you some thought to develop it further...<br>
<br>
Kadir<br>
<br>
------------------------------- <br>
<br>
from time import time as _time, sleep as _sleep<br>
from visual import *<br>
<br>
scene1 = display( title = "CUBE 1 - Scene 1" , x=20, y=20, width=300,
height=300)<br>
scene1.autoscale = 0<br>
scene1.range = (2,2,2)<br>
<br>
rframe = frame(pos=(0,0,0))<br>
rod = box( frame =rframe, pos=(0,0,0), size=(1,1,1), color=color.blue )<br>
c1 = cylinder(frame=rframe, pos=(0.0,0.5,0), radius=0.4,
axis=(0,0.1,0), color=color.red)<br>
c2 = cylinder(frame=rframe, pos=(0.0,0,0.5), radius=0.4,
axis=(0,0,0.1), color=color.yellow)<br>
<br>
scene2 = display( title = "CUBE 1 - Scene 2" , x=420, y=20, width=300,
height=300)<br>
scene2.autoscale = 0<br>
scene2.range = (2,2,2)<br>
scene2.forward = (1,-1,0)<br>
<br>
pi = 3.141592653589793<br>
while 1:<br>
<br>
rod.display = scene1<br>
c1.display = scene1<br>
c2.display = scene1<br>
time.sleep(0.01)<br>
<br>
rod.display = scene2<br>
c1.display = scene2<br>
c2.display = scene2<br>
time.sleep(0.01)<br>
<br>
rframe.rotate(axis=(1,0,0), angle=pi/60)<br>
</div>
</div>
<br>
<pre wrap="">
<hr size="4" width="90%">
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
<a class="moz-txt-link-freetext" href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a></pre>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Visualpython-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Vis...@li...">Vis...@li...</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/visualpython-users">https://lists.sourceforge.net/lists/listinfo/visualpython-users</a>
</pre>
</blockquote>
</body>
</html>
|