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__": Code:
viztask.addAction(Object1, TempActionSpinObject1) Code:
viztask.addAction(Object1, TempActionSpinObject1, pool = 0) Greetings Amir |
You can use viztask.waitAll to wait for a specified set of actions to complete. Here is an example:
Code:
import viz |
Hi,
Very many thanks for your detailed reply. Very helpful. Greetings Amir |
All times are GMT -7. The time now is 03:33 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC