#1
|
|||
|
|||
Simultaneous Actions on Multiple Objects
Hi,
I am wondering how I can run actions on multiple objects at the same time. It is a very basic task, but I cannot find any solution to it. The structure of my code is as follows: I have a scheduler that calls function MainProcedure. There I want to for example spin two objects ('Object1' & 'Object2') simultaneously. A part of my code goes below Code:
if __name__ == "__main__": ... viztask.schedule(MainProcedure()) ... def MainProcedure(): ... TempActionSpinObject1 = vizact.spinTo(euler = [90, 0, 0], speed = SpeedTurn) TempActionSpinObject2 = vizact.spinTo(euler = [0, 90, 0], speed = SpeedTurn) yield viztask.addAction(Object1, TempActionSpinObject1) yield viztask.addAction(Object2, TempActionSpinObject2) ... Code:
viztask.addAction(Object1, TempActionSpinObject1) yield viztask.addAction(Object2, TempActionSpinObject2) Code:
viztask.addAction(Object1, TempActionSpinObject1, pool = 0) yield viztask.addAction(Object2, TempActionSpinObject2, pool = 1) Greetings Amir |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Transparency on multiple objects | NASA GRC | Vizard | 0 | 03-15-2010 12:46 PM |
removing multiple objects | durf | Vizard | 7 | 08-05-2009 09:15 AM |
run multiple actions simultaneously | durf | Vizard | 1 | 05-08-2009 12:17 PM |
multiple objects | durf | Vizard | 1 | 04-10-2009 01:42 PM |
Problems with making multiple objects from one .wrl? | mjabon | Vizard | 3 | 07-10-2007 01:23 PM |