-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use bootstrapper, update c4dtools dependency to nr.c4d
* Use bootstrapper.pyp with localimport v1.7.3 * Remove c4dtools submodule and add nr.c4d module instead * Move plugin code into c4d_xpat/ Python module
- Loading branch information
1 parent
7f70196
commit 5d5b24f
Showing
14 changed files
with
415 additions
and
1,096 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,35 +1,2 @@ | ||
*.py[cod] | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Packages | ||
*.egg | ||
*.egg-info | ||
dist | ||
build | ||
eggs | ||
parts | ||
bin | ||
var | ||
sdist | ||
develop-eggs | ||
.installed.cfg | ||
lib | ||
lib64 | ||
|
||
# Installer logs | ||
pip-log.txt | ||
|
||
# Unit test / coverage reports | ||
.coverage | ||
.tox | ||
nosetests.xml | ||
|
||
# Translations | ||
*.mo | ||
|
||
# Mr Developer | ||
.mr.developer.cfg | ||
.project | ||
.pydevproject |
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,3 +1,3 @@ | ||
[submodule "c4dtools"] | ||
path = c4dtools | ||
url = [email protected]:NiklasRosenstein/c4dtools.git | ||
[submodule "lib/py-nr.c4d"] | ||
path = lib/py-nr.c4d | ||
url = [email protected]:NiklasRosenstein/py-nr.c4d.git |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2014 Niklas Rosenstein | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
.PHONY: c4d_xpat/res.py | ||
c4d_xpat/res.py: | ||
c4ddev symbols -ffile -o c4d_xpat/res.py |
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,23 +1,23 @@ | ||
XPAT - XPresso Alignment Tools | ||
============================== | ||
## Cinema 4D XPresso Alignment Tools | ||
|
||
XPAT is a free & open source Cinema 4D plugin that allows you to align | ||
XPresso nodes horizontally or vertically. Simply select the nodes, run | ||
the plugin, and there you go! Compatible with Cinema 4D R13+. | ||
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) | ||
|
||
__Installation__ | ||
XPAT is a Cinema 4D plugin that allows you to align XPresso nodes horizontally | ||
or vertically. | ||
|
||
1. [Download][releases] the latest release | ||
2. Unpack the contents of the ZIP file to your plugins folder | ||
### Installation | ||
|
||
__Features__ | ||
[Releases]: https://github.com/NiklasRosenstein/c4d-xpat/releases | ||
|
||
1. Go to the [Releases] page and download the latest version | ||
2. Unpack the contents of the ZIP file to your Cinema 4D plugins folder | ||
|
||
### Features | ||
|
||
* Aligned nodes will never overlap | ||
* Dialog for specifieng the horizontal and vertical spacing between aligned nodes | ||
* Full undo-compatibility | ||
|
||
[releases]: https://github.com/nr-plugins/xpresso-alignment-tools/releases | ||
|
||
----- | ||
--- | ||
|
||
Copyright (C) 2015 Niklas Rosenstein | ||
<p align="center">Copyright © 2013-2018 Niklas Rosenstein</p> |
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# localimport-v1.7.3-blob-mcw99 | ||
import base64 as b, types as t, zlib as z; m=t.ModuleType('localimport'); | ||
m.__file__ = __file__; blob=b'\ | ||
eJydWUuP20YSvutXEMiBpIfmeOLDAkJo7GaRAMEGORiLPUQrEBTVkumhSKK75Uhj5L+nHv2iSNpyfBiTXY+uqq76qpoqy+qsP\ | ||
/SyLIv4t+a5rVT0vleiU1o0XfSDdM8dEf95PFVNm9f96V28KstPQqqm71D4Kf9H/jZeNaehlzqq++Fqn49tv7PPvbJPw/PxrJ\ | ||
vWvqqro2hZ1WJX1c924aUZDk0rVs0B2XK7adMd+s2bbVF8v15Fe3GIGi1OKrmk8BpJoc+yiy45L6aOQy5xScspWiWWNbaN0ol\ | ||
Te4de0klMqmz7umoTdKarTiIbKv0B9aGMXSx6leN6Xu0U/u+4YatDLyNcK/E9gvOxCnBPR5hocBRQETVkiDrvRsozz4O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A/6TH5RQWAdmTMzoY\ | ||
1QwyFl+8h52dA6BVbtz00JjLnlPhvtwUOXCdnfp7Cksa2Yxcz+abIIyZyBVMQtsZ40NPyJ5p00h0TRhFyNI6pFP0y+kQdKkIS\ | ||
6MYHYBp8Pl87DHr2nzaP/FQ1wQcQ3EDLYUJoyx/1yxef39NmgXv+DHLtswvIzt+O4YSheO8N1WRng+5mRDeA1EtiZafHJMyG4\ | ||
tfNqix2EAbHHPR8ABcdBBb9A9QF/uxkv9cjIP3Daz+cFgWuULM8FI58ygsr1jrrxrzrPZMZm+tlMVM1NoXreikjzHf515JpPN\ | ||
GEh5PDNe2nAvXEuoQzttpl1NfLEXcrLC3x+/4n8yEmAgvclXT9+uvrV732hHy6FE6/6TkP7qYHqxVYZ5bVDSpLbpQkaaejg5y\ | ||
0xhow4u6ExcvKJveFww6sYfVkCOEsP+PBCp86404xeTH6A4g65DV81lgJqZ7oCxMLoilgt/OPD7GUi9xTHYnm+FN3CxBrwwGH\ | ||
8XpkWn6TT8t5DuLqjz31gpqb8Me/a6yn78C3ib3Vn7n6F4Uyqc+/r70qD7pQsGRQTzLpwfXeLivm1f7YXM+IcXBTnsBhiX6Kk\ | ||
fQ60Krofvon9LAfvuo901Gq6npmsOjZBR8kHrQa0fH4+QDOcd/pj7CNO47g+HR8+WrlZ/AaI7XVw=' | ||
exec(z.decompress(b.b64decode(blob)), vars(m)); _localimport=m;localimport=getattr(m,"localimport") | ||
del blob, b, t, z, m; | ||
|
||
path = ['.'] | ||
|
||
import os, sys | ||
project_dir = os.path.dirname(__file__) | ||
lib_archive = os.path.join(project_dir, 'lib-' + sys.version[:3].replace('.', '-') + '.egg') | ||
lib_dir = os.path.join(project_dir, 'lib') | ||
if os.path.join(lib_dir): # During development | ||
path.append(lib_dir) | ||
else: # Release | ||
path.append(lib_archive) | ||
|
||
with localimport(path, do_eggs=False) as importer: | ||
import c4d_xpat.res | ||
c4d_xpat.res.__res__ = __res__ | ||
import c4d_xpat.main |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
__author__ = 'Niklas Rosenstein <[email protected]>' | ||
__version__ = '1.3.0' |
Oops, something went wrong.