![]() |
|
|
|
#1
|
|||
|
|||
|
The most optimal change would be to clone the existing model. However, changing the appearance of one object will affect all its clones. If you want to make unique appearance changes to each model, then the second best thing is to make a copy of the existing model. Here is sample code that will add 50 objects of the same file using the clone technique:
Code:
for x in range(50):
model = viz.add('model.wrl',cache=viz.CACHE_CLONE)
Code:
for x in range(50):
model = viz.add('model.wrl',cache=viz.CACHE_COPY)
|
|
#2
|
|||
|
|||
|
perfect
perfect, thanks
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| trouble loading vrml files generated by ProE | tavaksai | Vizard | 12 | 12-09-2008 12:11 PM |
| Loading .3ds-Files without interrupting Program flow | Stefan | Vizard | 10 | 06-08-2005 05:44 PM |
| Error when playing wav files...? | vjonshih | Vizard | 1 | 05-23-2005 01:21 PM |
| loading large wav files in vizard | tommahhh | Vizard | 1 | 05-16-2005 04:23 PM |
| Including Files that Include Other Files | vjosh | Vizard | 1 | 09-21-2004 05:44 PM |