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.1.tar.gz (2.4 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.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: elbow_creator-0.1.tar.gz
  • Upload date:
  • Size: 2.4 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.1.tar.gz
Algorithm Hash digest
SHA256 9ad3d6f546b6fef48eaeb53830fed55ea79043cf9ea5a9197931e53dd4775b81
MD5 376d89c2fb168b27240e14238562e8d2
BLAKE2b-256 96596dc4fd6dc34d45558be86d57236e66b3bb07a1887527f6e6feeb3438223c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: elbow_creator-0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 275ac28f39e75b1f40483ccd4f4a33e4b1d30bcee4ad1ae9da7295341e3e5aeb
MD5 87676c9df3f99ba5ac246250f7e1ce9b
BLAKE2b-256 f698bcae394f6cdcadc918c83792bf72f62450ad851d71ab649f76ccf3ea2a32

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