Skip to content

Commit

Permalink
v0.7.5
Browse files Browse the repository at this point in the history
refinements for variables and animation
  • Loading branch information
Zolko-123 committed Dec 2, 2019
1 parent 90d43a7 commit aa33e6d
Show file tree
Hide file tree
Showing 6 changed files with 398 additions and 351 deletions.
9 changes: 7 additions & 2 deletions AnimationLib.py
Expand Up @@ -54,6 +54,8 @@ def Activated(self):

# grab the Variables container
self.Variables = App.ActiveDocument.getObject('Variables')
self.Model = App.ActiveDocument.getObject('Model')
self.Run = True

# Now we can draw the UI
self.drawUI()
Expand Down Expand Up @@ -87,11 +89,13 @@ def onRun(self):
# basic checks
if varName:
varValue = begin
while varValue+step <= end:
while varValue <= end and self.Run:
setattr( self.Variables, varName, varValue )
App.ActiveDocument.recompute()
#App.ActiveDocument.recompute()
App.ActiveDocument.Model.recompute('True')
Gui.updateGui()
varValue += step
self.Run = True
return
else:
return
Expand All @@ -103,6 +107,7 @@ def onRun(self):
+-----------------------------------------------+
"""
def onStop(self):
self.Run = False
return


Expand Down
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -74,6 +74,9 @@ This is then a raw interface between FreeCAD `App::Part` objects through the `Ap

## Release notes

* 2019.12.02 (**version 0.7.5**) :
Minor (but useful !) refinements for variables and animation.

* 2019.11.24 (**version 0.7.4**) :
Added Animation command

Expand Down
2 changes: 1 addition & 1 deletion VERSION
@@ -1,3 +1,3 @@
Assembly 4 Workbench for FreeCAD-v0.19
v0.7.4 2019.11.24
v0.7.5 2019.12.02

0 comments on commit aa33e6d

Please sign in to comment.