Skip to content

Commit

Permalink
Merge pull request #117 from BrendanParmer/v3.2
Browse files Browse the repository at this point in the history
v3.2
  • Loading branch information
BrendanParmer authored Aug 17, 2024
2 parents 2830b2a + ca1cd6e commit 85544d2
Show file tree
Hide file tree
Showing 28 changed files with 6,622 additions and 2,082 deletions.
22 changes: 10 additions & 12 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Node to Python

![Node To Python Logo](./img/ntp.jpg "Node To Python Logo")
![Node To Python Logo](./img/logo.png "Node To Python Logo")

[![GitHub release (latest by date)](https://img.shields.io/github/v/release/BrendanParmer/NodeToPython)](https://github.com/BrendanParmer/NodeToPython/releases) [![GitHub](https://img.shields.io/github/license/BrendanParmer/NodeToPython)](https://github.com/BrendanParmer/NodeToPython/blob/main/LICENSE) ![](https://visitor-badge.laobi.icu/badge?page_id=BrendanParmer.NodeToPython) ![](https://img.shields.io/github/downloads/BrendanParmer/NodeToPython/total.svg)

Expand All @@ -15,7 +15,7 @@ Blender's node-based editors are powerful, yet accessible tools, and I wanted to
* interfacing with other parts of the software or properties of an object

## Supported Versions
NodeToPython v3.1 is supported for Blender 3.0 - 4.1 on Windows, macOS, and Linux.
NodeToPython v3.2 is supported for Blender 3.0 - 4.2 on Windows, macOS, and Linux.

## Installation
1. Download the `NodeToPython.zip` file from the [latest release](https://github.com/BrendanParmer/NodeToPython/releases)
Expand All @@ -26,30 +26,28 @@ NodeToPython v3.1 is supported for Blender 3.0 - 4.1 on Windows, macOS, and Linu
## Usage
Once you've installed the add-on, you'll see a new tab in any Node Editor's sidebar. You can open this with keyboard shortcut `N` when focused in the Node Editor.

In the tab, there's panels to create add-ons for Geometry Nodes and Materials, each with a drop-down menu.
In the tab, there are panels to create add-ons for Geometry Nodes, Materials, and Compositing Nodes, each with a drop-down menu. You can set options in the options tab.

![Add-on Location](./img/location.png "Add-on Location")
![Add-on Location](./img/NodeToPython_Location.png "Add-on Location")

Select the node group you want code for, and you'll be prompted with a **Script** or **Add-on** option.
In the options panel, select either **Script** or **Add-on**.
* **Script** mode creates a function that generates the node tree and copies it to your Blender clipboard.
* Doesn't include `import bpy` line
* To keep NodeToPython cross-platform and independent of third-party libraries, to get it into your system clipboard you need to paste into the Blender text editor and recopy it currently
* **Add-on** mode generates a zip file for you in the save directory specified in the NodeToPython menu. From here, you can install it like a regular add-on. The generated add-on comes complete with operator registration and creating a modifier/material for the node tree to be used in.
* The current default operator install location is in the Object menu
* **Add-on** mode generates a zip file for you in the save directory specified in the NodeToPython menu. From here, you can install it like a regular add-on. The generated add-on comes complete with operator registration and creating a modifier/material/scene for the node tree to be used in.
* When exporting to an add-on in Blender 4.2 or higher, you'll need to select a GPL-compliant liscense for Blender to be able to register the extension.

## Bug Reports and Suggestions

When submitting an issue, please include

* Your version of Blender
* Your version of Blender (3.0 - 4.2)
* Your operating system
* Steps to reproduce the issue or a description of what you were trying to accomplish. Providing a test blend file is especially helpful

Got suggestions? Please create an [issue](https://github.com/BrendanParmer/NodeToPython/issues)! I'm happy to hear what features people want


## Legal Disclaimer
**Important Notice:**

**Important Notice:**

This tool is provided under the MIT license and is intended for lawful use only. It is your responsibility to ensure that any use of this tool complies with all applicable laws, including but not limited to copyright and intellectual property laws. The authors of this tool are not liable for any illegal use of this tool or any legal consequences that may arise from such use.

Expand Down
Binary file added docs/img/NodeToPython_Location.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/img/location.png
Binary file not shown.
Binary file added docs/img/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/img/ntp.jpg
Binary file not shown.
Loading

0 comments on commit 85544d2

Please sign in to comment.