WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-11-2012, 04:32 AM
new_horizon new_horizon is offline
Member
 
Join Date: Apr 2010
Posts: 43
Array Question

Hi All,

I am trying to create a program whereby an element is selected from an array and then a new array (minus the selected object is then created).

E.g.

Speed = [30,40,50,60]

target_speed = random.choice(Speed)

Speed = Speed-target_speed

Obviously the last line is incorrect - can anyone suggest how this can be done?

Thanks
Reply With Quote
 

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to invoke command line question billjarrold Vizard 2 01-11-2010 08:51 AM
Semi-circle array containing target and distractor objects ptjt255 Vizard 3 08-04-2009 03:09 AM
2D or 3D array help? durf Vizard 1 02-20-2009 10:57 AM
General question and question regarding arrays dan12345 Vizard 1 01-15-2008 10:15 AM
Copy objects in an array to another array Johannes Vizard 3 04-29-2005 02:37 PM


All times are GMT -7. The time now is 02:38 AM.


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