Skip to content

Commit

Permalink
Merge pull request #37 from arcsikex/csc2023-2
Browse files Browse the repository at this point in the history
Fix for 2023.2
  • Loading branch information
arcsikex committed Oct 21, 2023
2 parents 0ef2d1f + 3c25a1f commit 5f2c435
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ For a visual introduction watch the youtube video:

To install Cascadeur Bridge, follow these steps:

1. Download the [latest release](https://github.com/arcsikex/cascadeur_bridge/releases/tag/1.0.0) from the **releases**
> If you are using Cascadeur version **2022.3.1 or older** use [Cascadeur Bridge 0.4.1](https://github.com/arcsikex/cascadeur_bridge/releases/tag/0.4.1)
1. Download the [latest release](https://github.com/arcsikex/cascadeur_bridge/releases/tag/1.0.1) from the **releases**
> For Cascadeur version **between 2022.3.1 and 2023.1** use [Cascadeur Bridge 1.0.0](https://github.com/arcsikex/cascadeur_bridge/releases/tag/1.0.0)
> For **2022.3.1 or older** use [Cascadeur Bridge 0.4.1](https://github.com/arcsikex/cascadeur_bridge/releases/tag/0.4.1)
2. Open Blender and go to **Edit > Preferences**
4. Click on the Add-ons tab, then click the Install button at the top of the window
5. Select the downloaded zip
Expand Down
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
bl_info = {
"name": "Cascadeur Bridge for Blender",
"author": "Aron Nemeth",
"version": (1, 0, 0),
"version": (1, 0, 1),
"blender": (3, 6, 0),
"location": "View3D > Panels > CSC Bridge",
"description": "Helps you to integrate Cascadeur to your workflow with Belnder.",
Expand Down
13 changes: 2 additions & 11 deletions utils/csc_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,11 @@ def commands_path(self) -> str:
if platform.system() == "Darwin"
else os.path.join(self.csc_dir, "resources")
)
commands_config = os.path.join(resources_dir, "settings.ini")
with open(commands_config, "r") as f:
for line in f:
if line.startswith("ScriptsDir"):
scripts_dir = line.split("=")[1].strip().strip('"')
break
if scripts_dir:
return scripts_dir
else:
return os.path.join(resources_dir, "scripts", "python", "commands")
return os.path.join(resources_dir, "scripts", "python", "commands")

def start_cascadeur(self) -> None:
csc_path = self.csc_exe_path_addon_preference
subprocess.Popen([csc_path])

def execute_csc_command(self, command: str) -> None:
subprocess.Popen([self.csc_exe_path_addon_preference, "-run-script", command])
subprocess.Popen([self.csc_exe_path_addon_preference, "--run-script", command])

0 comments on commit 5f2c435

Please sign in to comment.