Use of O.Step and O.Pause when saving Packing
Hi,
I think I did not get how O.Step and O.Pause are supposed to work.
In a basic triaxial testing script, I am using the following function to save the packing. Before doing that , I would like to change some properties of the material or as in the example, the spheres radii:
def DoneHook():
ac = O.cell.hSize
#O.pause() #DO I NEED TO PAUSE BEFORE SAVING?
#CHANGING MATERIAL OR GEOMETRICK PROPERTIES
for b in O.bodies:
#O.step() #DO I NEED IT TO APPLY THE CHANGES?
for b in O.bodies:
O.pause()
When I used O.pause() before exporting, I have a random occurrence of Python Fatal Error *status is not current* and the file is not exported or exported with errors.
As you can read from my questions in the script's comments, I am unsure of the use of O.pause. Without it, I am able to save the file correctly but I do not know why.
Please let me know if you need a minimal working script to test this behaviour
thank you
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Robert Caulk
- Solved:
- Last query:
- Last reply: