![]() |
|
#2
|
|||
|
|||
|
I would do the following using a list, so that path1 is on index 0 and path n on index n-1
Code:
pathlist = list()
for curNumber in range(maxNumberOfPaths) :
path = viz.add(viz.ANIMATION_PATH)
path.speed(1)
path.loop(viz.CIRCULAR)
pathlist.append(path)
'text' + str(otherArgs)', so 'path' + str(1) would become 'path1' If you are unsure about the ability of the otherArgs to be casted correctly, you can wrap a try/catch around it. If you want to call elements in a container by their name, you can use a dictionary. |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| smoothing a cubic bezier path | just alex | Vizard | 10 | 04-22-2009 01:07 PM |
| 2D or 3D array help? | durf | Vizard | 1 | 02-20-2009 10:57 AM |
| Problems with interaction of vizact.turn and animation path | Enlil | Vizard | 3 | 11-24-2008 04:23 PM |
| speed on animation path | whj | Vizard | 8 | 11-17-2008 07:41 PM |
| Copy objects in an array to another array | Johannes | Vizard | 3 | 04-29-2005 02:37 PM |