Skip to content

Commit

Permalink
Dealing with namespaces
Browse files Browse the repository at this point in the history
Trying to be more Pythony
  • Loading branch information
Jandals committed Sep 12, 2020
1 parent 5da8e79 commit 553cc7d
Show file tree
Hide file tree
Showing 5 changed files with 1,177 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ src/simp.py
*.pyc
.settings/org.eclipse.ltk.core.refactoring.prefs
Release/
prev/__init__.py
prev/hairNet.py
prev/import_properties.py
hairNet/Run.py
hairNet/simp.py
26 changes: 26 additions & 0 deletions hairNet/Version Notes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
0.6.1
updated object selection call

0.6.0
Updated many calls for Blender 2.80
Moved interface to 3D_View to fix polling problem while switching to particle edit mode
uses depsgraph to restore editing particle coordinates

0.4.6
Fixed an issue which cause hairs to jump out of place when a second or third� hair system is created. The solution was to remove the commands to connect and disconnect the hair system(s).
Changed the behavior of Execute() to pass an existing hair system's name to createHair() so that users don't need to manually select the proper particle system.

0.4.7
Proxy objects have a String tag which leads HairNet to a template hair system setting in the Blend File.

0.4.8
We can now interpolate a hair mesh to create additional hairs in between those defined by the mesh. Next up is to interpolate each hair and subdivide it.

0.4.9
Hair systems can now be applied to a proxy mesh as well as to a head object. The choice is made by how the objects are selected.

0.4.10
Undid the change to using operator overrides for creating particle systems. It was being done incorrectly and I can't find the proper way to do it.

0.4.11
Restored Making hair from curves.
57 changes: 57 additions & 0 deletions hairNet/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# ##### END GPL LICENSE BLOCK #####

bl_info = {
"name":"hairNet",
"author": "Rhett Jackson",
"version": (0,6,2),
"blender": (2,90,0),
"location": "Properties",
"category": "Particle",
"description": "Creates a particle hair system with hair guides from mesh edges which start at marked seams.",
"wiki_url": "http://wiki.blender.org/index.php?title=Extensions:2.6/Py/Scripts/Objects/HairNet",
"tracker_url":"http://projects.blender.org/tracker/index.php?func=detail&aid=35062&group_id=153&atid=467"
}


if "bpy" in locals():
import importlib
importlib.reload(hairNet)
importlib.reload(import_properties)
else:
from . import hairNet
from . import import_properties

import bpy


# ### REGISTER ###



def register():
hairNet.register()



def unregister():
hairNet.unregister()


if __name__ == "__main__":
register()
Loading

0 comments on commit 553cc7d

Please sign in to comment.