Skip to content

Commit

Permalink
Fix scale to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
dtugend committed Mar 11, 2022
1 parent 022e667 commit fa01304
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions advancedfx/import_agr.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,19 +634,19 @@ def addCurvesToModel(self, context, modelData):
v.targets[0].id = a
v.targets[0].data_path = 'hide_render'

if self.scaleInvisibleZero:
if self.scaleInvisibleZero:

ds = a.driver_add('scale')
for df in ds:
d = df.driver
d.type = 'SCRIPTED'
d.use_self = True
h = d.variables.new()
h.name = 'hide'
h.targets[0].id = a
h.targets[0].data_path = 'hide_render'
d.expression = "(1-hide)*self"
ds = child.driver_add('scale')

for df in ds:
d = df.driver
d.type = 'SCRIPTED'
d.use_self = False
h = d.variables.new()
h.name = 'hide_render'
h.targets[0].id = a
h.targets[0].data_path = 'hide_render'
d.expression = "1-hide_render"


return modelData
Expand Down
2 changes: 1 addition & 1 deletion advancedfx/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ For more informations visit it's Advancedfx Wiki page ( https://github.com/advan

Changelog:

1.14.0 (2022-03-11T21:36Z):
1.14.1 (2022-03-11T22:28Z):
- Added support for AGR version 6, still supports version 5.

1.13.2 (2021-12-06T22:11Z):
Expand Down

0 comments on commit fa01304

Please sign in to comment.