From: IVES,THOM (HP-Boise,ex1) <tho...@hp...> - 2002-08-02 14:32:18
|
Bruce's answer begins to answer my question in part, but I need to know how, in the user-created-class itself, you get the objects to become part of the overall frame. In the pre-existing classes, one simply puts frame = "framename" in the creation line for the object. What statements must be put in a user created class to add the object to the "framename" frame? Thom -----Original Message----- From: Bruce Sherwood [mailto:bas...@un...] Sent: Thursday, August 01, 2002 8:09 PM To: IVES,THOM (HP-Boise,ex1); Visual Python Users (E-mail) Subject: Re: [Visualpython-users] Frames in User Created Classes... There isn't a way in Visual to move an existing object into a frame. You have to create the object in the desired frame. So your "3" has to come first, I believe. This is true for Visual's built-in objects, and would be true for yours as well, presumably. Bruce Sherwood ----- Original Message ----- From: "IVES,THOM (HP-Boise,ex1)" <tho...@hp...> To: "Visual Python Users (E-mail)" <vis...@li...> Sent: Thursday, August 01, 2002 2:40 PM Subject: [Visualpython-users] Frames in User Created Classes... > Does anyone have experience with the following: > > 1) You have created a new class for visual python using faces to draw new > shaped objects. > > 2) You write a program that creates several instances of these objects. > > 3) You now want to add all of these instances to a common frame. > > How do you set up the classes in 1) such that the objects in 2) will all be > part of this same frame proposed in 3)? > > Thom > > Thom Ives > Work: HP, PSB, 11413 Chinden Blvd. MS 400, Boise, ID 83714 > Voice: (208) 396-6880, Fax: (413) 332-6558 > E-mail: tho...@hp... > Home: 5556 N Columbine Pl., Boise, ID 83713 > Voice: (208) 938-9357 > E-mail: tw...@bi... > > > |
From: IVES,THOM (HP-Boise,ex1) <tho...@hp...> - 2002-08-02 14:47:00
|
Dave's steps do run without error in my case, but when I try to reorient with f.axis = (new axis tuple) I get no movement. I am still wondering if there is some special steps I need to take within the class that I am creating. Thom -----Original Message----- From: Bruce Sherwood [mailto:bas...@un...] Sent: Friday, August 02, 2002 6:57 AM To: vpusers Subject: Fw: [Visualpython-users] Frames in User Created Classes... Oops! I stand corrected. You can indeed assign an existing object to a frame. Thanks, Dave! ----- Original Message ----- From: "Dave Scherer" <da...@vi...> To: <bas...@un...> Sent: Friday, August 02, 2002 8:33 AM Subject: Re: [Visualpython-users] Frames in User Created Classes... > Yes there is! > > s = sphere() > f = frame() > s.frame=f > f.pos=(2,0,0) > > Sphere displays at X=2. > > Dave > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Visualpython-users mailing list Vis...@li... https://lists.sourceforge.net/lists/listinfo/visualpython-users |
From: David S. <dsc...@vi...> - 2002-08-03 20:53:22
|
Changing the axis of the frame shouldn't do much (anything) to a sphere at the origin of the frame. Try a cylinder() instead to see what is happening. Do you have a specific piece of code that doesn't work? Dave > -----Original Message----- > From: vis...@li... > [mailto:vis...@li...] On > Behalf Of IVES,THOM (HP-Boise,ex1) > Sent: Friday, August 02, 2002 10:47 AM > To: vpusers > Subject: RE: [Visualpython-users] Frames in User Created Classes... > > > Dave's steps do run without error in my case, but when I try > to reorient with f.axis = (new axis tuple) I get no movement. > I am still wondering if there is some special steps I need to > take within the class that I am creating. > > Thom > > -----Original Message----- > From: Bruce Sherwood [mailto:bas...@un...] > Sent: Friday, August 02, 2002 6:57 AM > To: vpusers > Subject: Fw: [Visualpython-users] Frames in User Created Classes... > > > Oops! I stand corrected. You can indeed assign an existing > object to a frame. Thanks, Dave! > > ----- Original Message ----- > From: "Dave Scherer" <da...@vi...> > To: <bas...@un...> > Sent: Friday, August 02, 2002 8:33 AM > Subject: Re: [Visualpython-users] Frames in User Created Classes... > > > > Yes there is! > > > > s = sphere() > > f = frame() > > s.frame=f > > f.pos=(2,0,0) > > > > Sphere displays at X=2. > > > > Dave > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |