11"""Import Guide Visualizer Configuration custom step template.
22
3- Template for importing guide visualizer settings from a JSON file.
3+ Template for importing guide visualizer settings from a .gvc file.
44"""
55
66TEMPLATE = r'''import mgear.shifter.custom_step as cstp
@@ -18,7 +18,7 @@ class CustomShifterStep(cstp.customShifterMainStep):
1818 - Guide curves (lineWidth, CV scale)
1919 - Labels
2020
21- The configuration is imported from a JSON file exported by the
21+ The configuration is imported from a .gvc file exported by the
2222 Guide Visualizer tool.
2323 """
2424
@@ -28,12 +28,12 @@ def setup(self):
2828
2929 # Configure the configuration file path
3030 # Option 1: Hardcode the path
31- # self.config_path = "path/to/your/guide_visualizer_config.json "
31+ # self.config_path = "path/to/your/guide_visualizer_config.gvc "
3232
3333 # Option 2: Use a path relative to this script
3434 # import os
3535 # script_dir = os.path.dirname(__file__)
36- # self.config_path = os.path.join(script_dir, "guide_vis_config.json ")
36+ # self.config_path = os.path.join(script_dir, "guide_vis_config.gvc ")
3737
3838 # Option 3: Leave as None to show file dialog at runtime
3939 self.config_path = None
@@ -58,7 +58,7 @@ def run(self):
5858 file_path = cmds.fileDialog2(
5959 caption="Import Guide Visualizer Configuration",
6060 fileMode=1,
61- fileFilter="JSON Files (*.json )",
61+ fileFilter="Guide Visualizer Config (*.gvc )",
6262 )
6363 if not file_path:
6464 self.log("Import cancelled.", level="warning")
0 commit comments