Comments (7)
Hm that is probably not supported currently. Are the addons in separate folders?
from blender_vscode.
Yes, they are currently in separate folders under a master addons/
folder. So the structure is...
addons/
plugin_a/
__init__.py
plugin_b/
__init__.py
plugin_c/
__init__.py
from blender_vscode.
Does it work when you load these folders separately into vscode?
from blender_vscode.
Yes it does, and that's what I've been doing for the time being. Part of why it'd be nice to launch specific plugins from the root is that the documentation/site files for the plugins are in another folder at the top level (sibling to addons/
), which means I need another window open for editing the site and documentation for the addons. Additionally, context switching between addons also means independent VSCode windows that I'd need to hop between.
I do realize that I'm likely in the minority of users with this pattern, but it might be a useful consideration for others who have mono repo projects or who manage related addons under an umbrella project.
Great work on this extension by the way!
from blender_vscode.
Visual Studio Code supports multi-root-workspaces (https://code.visualstudio.com/docs/editor/multi-root-workspaces). With that, you do not need to have multiple instances running at the same time. The blender extension should be able to support that, never really tried though.
from blender_vscode.
I tried that approach as well. If only one addon is present in any of the listed folders for the workspace, it works. When an addon exists in more than one folder listed in the *.code-workspace
, it fails to load any of them.
I'll try and do some more investigation into this issue later this week.
from blender_vscode.
Use folders settings in .code-workspace file as follows:
{ "folders": [ { "path": "addon1" }, { "path": "addon2" }, ] ... }
All folders have to contain the __init__.py file, which is this extension looking for.
from blender_vscode.
Related Issues (20)
- Does this extension run Blender 3.3 ? HOT 6
- Change blender.scripts.directories to resource too
- Hitting a "Run Script" Breakpoint Opens New Read-Only File HOT 3
- ValueError: Compressor 'zlib1' already registered. HOT 1
- Alpha and Beta versions do not work HOT 2
- Extension not working with blender 2.79
- Cannot set breakpoints when debugging scripts HOT 1
- Addons are not found if their folders are not on the system drive.
- Not working in Blender 3.6 HOT 5
- Blender 3.6.4 crashes pushing undo step from script
- Blender 3.6 and blender development HOT 2
- Blender 4.0 and Run Script Error from VSCode HOT 5
- Changing or deleting scene in blender when running through this VS code addon seems broken? HOT 3
- Does this work for Blender 4.0? HOT 8
- License of adding developed with the extension HOT 1
- Using "Blender Start" terminated with exit code: 3221225477 after reading userpref.blend that was altered by this extension HOT 2
- Publishing to the public vsx registry
- Reloading imported modules in a script HOT 3
- Question: How open existing .blend file on startup HOT 4
- Add option to start blender using custom command (not only custom binary) HOT 1
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.
from blender_vscode.