WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-28-2005, 12:06 PM
Johannes Johannes is offline
Member
 
Join Date: Jan 2005
Posts: 143
Copy objects in an array to another array

Hi,
hope it is not a very dumb question, but I'm trying to copy objets that are in one array to another.

In fieldLine there are 34 Objects. I want to copy them and then transfer them to another location. Do I have to add them all to the scene or is there an easier way e.g.


fieldLine=TorusEllipse1+TorusEllipse2+TorusEllipse 3
fieldLine2=fieldLine[:]

for fieldL in fieldLine2:
fieldL.rotate(0,0,1,135)

Johannes
Reply With Quote
  #2  
Old 04-28-2005, 01:53 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

Are you talking about copying Vizard objects or just copying Python objects from one array to another? If you are talking about copying Python objects then the code you posted should work. Let me know if I misunderstood your question.
Reply With Quote
  #3  
Old 04-28-2005, 06:05 PM
Johannes Johannes is offline
Member
 
Join Date: Jan 2005
Posts: 143
Did a workaround by typing a lot of code (will improve it later with objects).

I tried it with vizard objects (toruses used for field lines), but I guess I have to do it with objects then I will be fine, so no need to answer this question if I have problems I will write again.


I moved small segments in the path of an ellipse. Unfortunately vizard only painted one side of the ellipse with color (red) the other side stayed dark. Could this be a problem with culling?

Johannes
Reply With Quote
  #4  
Old 04-29-2005, 02:37 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Try disabling lighting on the object. It should be the same color on both sides, however there will be no shading on the object though.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:07 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC