sculpt-alphas-manager's People
sculpt-alphas-manager's Issues
doesnt work with blender 3.5
eror message
Python: Traceback (most recent call last):
File "C:\Users\Gloria\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\Sculpt_Alphas_Manager.py", line 124, in execute
os.startfile(os.path.join(lib_path, selected_category_name))
FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\Users\Gloria\3D Objects\cool stuff\uncategoriez\GLORIA ALPHA COLLECTION\Sculpt_Alphas_Manager.py\'
Add-on not working on MacOS
Hi,
I tried to use it on Mac (OS 10.14.6) and it was not working.
See my comment for more detail: https://blenderartists.org/t/sculpt-alphas-manager/1200725/17?u=sebastian1066
I investigated the error and I found 2 problems:
- The line
os.startfile(os.path.join(lib_path, selected_category_name))
seems to work only for Windows. For *Nix you'd need to use something like this:
opener = "open" if sys.platform == "darwin" else "xdg-open"
subprocess.call([opener, os.path.join(lib_path, selected_category_name)])
I replaced line 124 for the code below and I got rid of this problem
if sys.platform == "win32":
os.startfile(os.path.join(lib_path, selected_category_name))
else:
opener = "open" if sys.platform == "darwin" else "xdg-open"
subprocess.call([opener, os.path.join(lib_path, selected_category_name)])
- After fixing the first problem, the categories and brushes didn't show. This was caused by line 70:
if os.path.isdir(lib_path + folder):
I replaced it for the code below and then I was able to see the categories and brushes:
if os.path.isdir(os.path.join(lib_path, folder)):
I'm not able to test the above code in a Win environment but if you'd like to make it work for the different OS's it would seem you'll have to do something like I did.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.