diff --git a/advancedfx/import_agr.py b/advancedfx/import_agr.py index be0ab8c..0c9c892 100644 --- a/advancedfx/import_agr.py +++ b/advancedfx/import_agr.py @@ -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 diff --git a/advancedfx/readme.txt b/advancedfx/readme.txt index caffd8a..7b0c754 100644 --- a/advancedfx/readme.txt +++ b/advancedfx/readme.txt @@ -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):