multiple objects
Im trying to think of a faster way to write this code. I have 3 objects. All 3 objects work as a whole. For example. Object 1 fits inside of object 2 and object 2 fits inside of object 3. So image a telescope that collapses. Below is the code that goes with these objects. How can I make multiple instance of these objects without writing a ton of extra code. Like I dont want to do bottom, bottom2, bottom3...etc. But maybe that is the only way. Any suggestions? I can clarify more if need be.
Thanks Code:
import viz |
Sounds like all you need is to make a class to put the code in. Instantiate the class and you'll have a copy of the object that does not require code duplication.
|
All times are GMT -7. The time now is 08:00 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC