Giter VIP home page Giter VIP logo

Comments (11)

Mateusz-Grzelinski avatar Mateusz-Grzelinski commented on August 11, 2024 1

oh, I am not used to new extension system, i just found the path you are talking about. This is the second case that I was talking about. You are working in directory that is already loaded to blender by default.
No, you need to have your addon outside of blender managed directory (however is is called).
For example I have it like this:
image

from blender_vscode.

Mateusz-Grzelinski avatar Mateusz-Grzelinski commented on August 11, 2024 1

on linux I would recommend to copy with option to follow the links. But maybe we can also fix it in code. Will see. Made a draft with fix.

from blender_vscode.

Mateusz-Grzelinski avatar Mateusz-Grzelinski commented on August 11, 2024

Hi just a quick reply: where are you doing your add-on development? If I remember correctly this extension will do a hard link (in windows links are a bit weird) of your add-on to blender directory for add-ons.
So if you are developing your add-on in blender add-on folder, this extension might create a duplicate but I would need to check deeper.

from blender_vscode.

Dangry98 avatar Dangry98 commented on August 11, 2024

@Mateusz-Grzelinski Hi, I am currently working in the blender_org folder, the reson is that if I try to do it in user_default and the start up Blender with VS Code it just crashes on all of the add-on I tried to far.

What is the current recommended way to work?

from blender_vscode.

Mateusz-Grzelinski avatar Mateusz-Grzelinski commented on August 11, 2024

your duplicate addon might be coming from

When if you start bledner from VS code VS code will make sure that blender can see the addon by making a hard link to scripts/addons/<addon name>.
When you can see the duplicate of addon, what is the path reported?
image

from blender_vscode.

Dangry98 avatar Dangry98 commented on August 11, 2024

Here is the paths:
image

from blender_vscode.

Dangry98 avatar Dangry98 commented on August 11, 2024

your duplicate addon might be coming from

Scripts Directories user setting https://docs.blender.org/manual/en/latest/advanced/extensions/addons.html#user-defined-add-on-path
you are working in directory that is already loaded to blender by default https://docs.blender.org/manual/en/latest/advanced/blender_directory_layout.html#blender-directory-path-layout

I have never used them to load any add-ons, so thats probely not the problem

from blender_vscode.

Mateusz-Grzelinski avatar Mateusz-Grzelinski commented on August 11, 2024

if you are using addon the VS code will setup your addon in scripts/addons and if you are using new extension you addon will be setup in user_default.

from blender_vscode.

Dangry98 avatar Dangry98 commented on August 11, 2024

Oh! Thank you so much! It seems to be working! I did not know that it was possible to run from an external folder! Thats so nice!

The only problem I see with this metod is that it's slightly less convenient since I usually work and do iterations quite often, and then send over my Blender config folder to another computer. Then it's quite nice if the add-on is placed directly in the Blender config files to begin with. But thats a nit pick. Anyway, thanks for the help! I appreciate it!

from blender_vscode.

Dangry98 avatar Dangry98 commented on August 11, 2024

Awsome! Thank you so much!

from blender_vscode.

Mateusz-Grzelinski avatar Mateusz-Grzelinski commented on August 11, 2024

Completed by mistake. It is worked on in #172

from blender_vscode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.