Comments (6)
As a developer you can learn how to develop this ;D
I also had no idea what I got myself into when I started developing this extension haha
Yes, I will definitely be possible to attach the extension to an already running Blender instance in the future. Just have to find a good way to do it, but should not be too difficult. :)
from blender_vscode.
As a developer you can learn how to develop this ;D
Yes, indeed. And in fact, that's been on my mind for some time now, too. I hope to contribute something in the future for sure. :)
from blender_vscode.
Hi @JacquesLucke, just recently found out about your extension. I wrote blender-debugger-for-vscode, don't know if you've heard about it. I haven't had time to look through your extension yet, I only briefly played around with it, but just want to say the general idea is brilliant! Wish I'd thought of it.
Anyways, although I would not recommend developing an addon on an "unclean" blender instance, could your extension not connect to a running instance of Blender if somebody was using my addon? All it does is run a ptvsd server.
I already made branch that works with 2.8, just haven't pushed it yet because I was planning on changing a few things, e.g. seeing if I coudn't make it auto download ptvsd so the install would be much easier.
from blender_vscode.
Hey, yes I've heard about. I checked the alternatives before I started working on this project.
That is right, there will probably be a bad collision when someone uses your and my addon at the same time. However using both does not make much sense anyway, does it?
I implemented auto download for required packages. For me this is one of the most important things (and one of the main reasons I started this project; but now I see much more potential).
The way I implemented it is fairly straight forward, and works reasonably well. I'm still waiting for more bug reports. :D
I just install pip in Blender using the get-pip.py
file, and then use pip to install ptvsd and other required packages.
from blender_vscode.
Ah, I and yep, I can definitely insert a check to see if the ptvsd server is running already and don't do anything in that case. :)
from blender_vscode.
I don't think my addon should interfere since it will just detect the ptvsd version you injected (since it should be first in it's path). The only thing is you don't seem to have a regular "connect" command that just tries to attach.
The upside is this would also probably work with 2.79, the downside is I think you would lose the ability to send commands to blender (to reload addons for example).
I only mention this as a quick workaround. You can probably achieve similar functionality by registering a command under bpy.ops
that the user can then use to start ptvsd manually (like my addon does). Since you know where ptvsd is installed, you wouldn't need to implement any auto-detecting of the path like mine.
PS: The reason I didn't go the automatically install pip and ptvsd route was because A) I was kind of winging it when I wrote that addon... B) since it technically also supports Visual Studio (I should really change the name), different users might need different ptvsd versions, even VS Code could not use the latest until recently, and I didn't know how to handle that elegantly. Though I have an idea now for how to go about it now.
from blender_vscode.
Related Issues (20)
- Blender 3.1.2 wont start anymore HOT 1
- Blender Developement v0.0.16 appears to be incompatible with Blender 3.1.2 HOT 3
- mixer.connect error
- Enable setting "justMyCode": false for Python debugging HOT 5
- Issue starting Blender from VsCode on Mac HOT 2
- blender no workspace found? HOT 1
- Running script produce an error HOT 1
- Extension causes high cpu load HOT 1
- PermissionError: [WinError 5] HOT 2
- Code snippet works in Blender's text editor, but does not with blender_vscode HOT 4
- bpy.context.[active_]object set to None after adding primitive when run from VS Code Extension
- 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
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.