python scripts ?

if you look in a view port there is in the menu a script option

if you select this it will give you another scipts menu and each item in this menu gives severals scripts in python

In the main directory for blender which is Blender foundation
you find some pythons script then

there was a zip pytons which added some more pythons scripts also to this directory

and then there is a blender directory with other pythons scripts

and under there is a directory with a script directory

all containing pythons scripts

Can someone explains where we find all those scripts in blender when you open it
or if those script are for internal use only and not accssible to the user ?

Tanks & Salutations

In the main directory for blender which is Blender foundation
you find some pythons script then

There should be no scripts in this folder. Maybe you downloaded them yourself?

there was a zip pytons which added some more pythons scripts also to this directory

This contains scripts that run in the background (when you use the Help menu, the Sripts window, BPY! routines etc) and you should leave it alone.

and then there is a blender directory with other pythons scripts

That is actually the .blender folder, with a dot. This folder contains all of the scripts that you access from the Scripts window menu, from the Import and Export menus in File, and from the Help menu. Scripts that you actually click on to make them run.

If you download a Python Script that has valid BPY! register code like this:

#!BPY

""" Registration info for Blender menus: <- these words are ignored
Name: 'dispaint'
Blender: 233
Group: 'Mesh'
Tip: 'use vertex paint color value to modify shape displacing vertices along normal'
"""

then this is the folder that you should put it into. Goto the Scripts window Menu and press “Update” to have that new file updated in the list (one of the scripts in the .zip)

%<

when you write a text file in python where does it go

  • in which directory ?

and this is not save as a python file but as a TXT file

Tanks

You can put it in .blender/scripts, but do not put it in a folder (.blender/scripts/txtfiles) because then blender won’t find all of the bundled scripts. If you do put it in .blender/scripts you will have to load it manually with the Text Editor every time you open it. It may be better to make a new folder like /Program Files/Blender/PyText or something like that.

%<