Skip to content

Commit

Permalink
Fixed a not defined idx variable inside: prm_paste(self) -> None:
Browse files Browse the repository at this point in the history
  • Loading branch information
alexnardini committed Nov 17, 2024
1 parent 84b860d commit 0855234
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/py/py_flam3.py
Original file line number Diff line number Diff line change
Expand Up @@ -4769,7 +4769,7 @@ def prm_paste(self) -> None:

# Adding ability to reset the current iterator to its default values.
elif self.kwargs["alt"]:
with hou.undos.group(f"FLAM3H reset iterator {idx}"): # type: ignore
with hou.undos.group(f"FLAM3H reset iterator {id}"): # type: ignore
self.flam3h_reset_iterator()
_MSG = f"{node.name()}: Iterator {id} -> RESET"
flam3h_general_utils.set_status_msg(_MSG, 'MSG')
Expand Down Expand Up @@ -5548,10 +5548,7 @@ def reset_FF(self) -> None:
node.setParms({f"{PRX_FF_PRM}{n.var_weight_1}": 1}) # type: ignore
node.setParms({f"{PRX_FF_PRM}{n.var_weight_2}": 0}) # type: ignore
# FF post
node.setParms({f"{PRX_FF_PRM}{n.postvar_type_1}": 0}) # type: ignore
node.setParms({f"{PRX_FF_PRM}{n.postvar_type_2}": 0}) # type: ignore
node.setParms({f"{PRX_FF_PRM}{n.postvar_weight_1}": 0}) # type: ignore
node.setParms({f"{PRX_FF_PRM}{n.postvar_weight_2}": 0}) # type: ignore
[prm.set(0) for prm in (node.parm(f"{PRX_FF_PRM}{n.postvar_type_1}"), node.parm(f"{PRX_FF_PRM}{n.postvar_type_2}"), node.parm(f"{PRX_FF_PRM}{n.postvar_weight_1}"), node.parm(f"{PRX_FF_PRM}{n.postvar_weight_2}"))]
# FF affine
node.setParms({f"{PRX_FF_PRM}{n.preaffine_x}": hou.Vector2((1.0, 0.0))}) # type: ignore
node.setParms({f"{PRX_FF_PRM}{n.preaffine_y}": hou.Vector2((0.0, 1.0))}) # type: ignore
Expand Down

0 comments on commit 0855234

Please sign in to comment.