JacquesLucke / blender_vscode

Visual Studio Code extension for Blender development.
MIT License
541 stars 70 forks source link

Question: How to connect to an existing project #159

Open wadeok opened 2 months ago

wadeok commented 2 months ago

I'm a beginner in Blender. I just downloaded a 3D model from the internet, let's say the file name is 'project.blend'. I want to manipulate the objects inside using a Python script. As far as I know, clicking Blender Development's Blender: Start will open a new blank Blender window, but I want to open the existing 'project.blend' instead, and work with it. How can I do that?

Mateusz-Grzelinski commented 2 months ago

Oh my, now I might be as confused as you. 😀

  1. For quick experiments use blender built in python console.
  2. When you have experimented enough, open text editor (inside blender) and copy paste your commands there. You will need to make slight adjustments as the blender python console has some pre configuration applied.
  3. When your script is too big save it to external file and/or convert it to add-on. Only then you should start using this add-on for Vs code.

The built in python console is your best friend in your early days

wadeok commented 2 months ago

@Mateusz-Grzelinski Thanks for your sharing ~ But I want to use vscode even in my early days, because vscode has many powerful features and extensions that make my coding easier.

JuhaW commented 1 month ago

After Blender: Start, just file/open.. your 'project.blend'. Then you'll start debugging/testing your script(s) with VSCode.