-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove readme because it isn't very up to date
- Loading branch information
1 parent
d5f925d
commit da6e175
Showing
1 changed file
with
1 addition
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1 @@ | ||
http://animation-nodes-documentation.readthedocs.org/en/latest/ | ||
|
||
##How to make my own nodes | ||
|
||
|
||
### Overview | ||
To create your own node you have to follow 2 simple steps: | ||
|
||
1. Copy the file of an existing node and change to you needs. | ||
2. Register the node in the _nodes/mn_node_list.py_ file. | ||
|
||
All node files are in the subdirectories of the Folder named _nodes_. | ||
|
||
### the class | ||
The Code itself is very self-explanatory. | ||
You have to change: | ||
* the class Name too something that fits the purpose of your node | ||
* the _bl_idname_ variable: you Need this later to Register the node | ||
* the _bl_label_ variable: the user will see this in the add menu | ||
|
||
### _init_ | ||
The _init_ function is for defining the sockets. In other nodes you see exactly how this has to look like. | ||
There are a few different types of sockets (the list will probably get longer over time): | ||
* StringSocket -> Text | ||
* ObjectSocket -> Object names | ||
* IntegerSocket -> Whole Numbers | ||
* FloatSocket -> All Numbers | ||
* VectorSocket -> Vector with an x, y and z component | ||
* GenericSocket -> allows all types | ||
|
||
### execute | ||
Here you add the code that executes when the node is used. | ||
It gets a variable named _input_ as Parameter. This is a dictionary which contains your input socket names as keys. | ||
This function always returns a dictionary that should be called _output_. The keys of this dictionary are equivalent to the output socket names you defined in the _init_ function. | ||
|
||
### Registration | ||
Open the _mn_node_list.py_ file and write your _bl_idname_ in the corresponding category or define you own category. This shouldn't be more than a one-line-change. | ||
|
||
### summary | ||
The best way to implement new nodes is to look at the existing ones :D | ||
|
||
http://animation-nodes-documentation.readthedocs.org/en/latest/ |
da6e175
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will you still be working on this project? It is really great and promising.
da6e175
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yees. I'm still working on it. Just look at the refactor branch. more than 250 commits within the last few days
Unfortunally it will still take a while until I can merge all these changes into master
da6e175
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh right I did not see the refactor branch! I am testing it right now.. Thank you for the great work
da6e175
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the refactor branch is not in a usable state! But have fun working with the master version :)