Skip to main content

A package to create an elbow mesh in Blender

Project description

Step 2: Install the Package in Blender

To install the package in Blender’s Python environment:

  1. Locate Blender’s Python Executable:

    • Open Blender.
    • Go to the Scripting workspace.
    • Open a new Text Editor and run the following script to print Blender's Python executable path:
      import sys
      print(sys.executable)
      
  2. Open a Terminal and Navigate to Blender’s Python Directory:

    • Copy the path printed from the above script.
    • Open a terminal and navigate to Blender’s Python directory:
      cd /path/to/blender/installation
      
  3. Install the Package:

    • Navigate to the directory containing setup.py and run:
      /path/to/blender/python/bin/python3.7m -m pip install .
      

Step 3: Create a New Script in Blender to Use the Package

  1. Open Blender and Go to the Scripting Workspace:

    • Open Blender.
    • Switch to the Scripting workspace.
  2. Create a New Script:

    • Click New in the Text Editor panel to create a new script.
    • Save this script with a name, for example, run_elbow_creator.py.
  3. Write the Script to Use the Package:

import bpy
from elbow_Creator import create_elbow

# Example usage
radius = 1
point1 = (0, 0, 0)
point2 = (2, 2, 0)
create_elbow(radius, point1, point2)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

elbow_creator-0.2.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

elbow_creator-0.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file elbow_creator-0.2.tar.gz.

File metadata

  • Download URL: elbow_creator-0.2.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.0

File hashes

Hashes for elbow_creator-0.2.tar.gz
Algorithm Hash digest
SHA256 30d57cd389df8fcd251eaecac9c12901f23414261c538708ed1f173238ceb04b
MD5 a176724c7a676686b1a97aedcb02c6d6
BLAKE2b-256 1bbe110fd0fe6f04e605a6bddc83bf30d720b4186aaf18163d07ee5e9f1ae3ff

See more details on using hashes here.

File details

Details for the file elbow_creator-0.2-py3-none-any.whl.

File metadata

  • Download URL: elbow_creator-0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.0

File hashes

Hashes for elbow_creator-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cdb7139081c889e25e2e183fa8707b9c007ae0c1b74560272d3b657a222a3347
MD5 8cc668fff498ce3049f0ec950fe31f6d
BLAKE2b-256 2865473bddf1e1c11dca67e7e22e2544e00057853b69e151457d8a8c00e6e6ff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page