Skip to content

Commit

Permalink
make unzipped runtimes executable(linux),readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
dertom95 committed Nov 16, 2020
1 parent 5e2278c commit e8c4651
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 8 deletions.
3 changes: 3 additions & 0 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ def PublishRuntimeSettings(self,context):
default_runtime_folder = ""
if current_system=="Linux":
default_runtime_folder=os.path.dirname(os.path.realpath(__file__))+"/runtimes/urho3d-blender-runtime"
if os.path.isfile(default_runtime_folder):
os.chmod(default_runtime_folder, 0o755)

elif current_system=="Windows":
default_runtime_folder=os.path.dirname(os.path.realpath(__file__))+"/runtimes/urho3d-blender-runtime.exe"

Expand Down
4 changes: 3 additions & 1 deletion create_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ cp temp/urho3d-blender-runtime-ver2/build/mingw/bin/urho3d-blender-runtime.exe r
rm -Rf temp
rm -Rf __pycache__

zip -r urho3d-blender-exporter.zip . -x '*.git*'
cd ..
zip -r $HOME/urho3d-blender-exporter.zip Urho3D-Blender -x '*.git*'
cd $HOME
44 changes: 37 additions & 7 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,29 @@
Urho3D-Blender
==============

This plugin is heavily under development....
This plugin is **work in progress**....


**Use this:**

Wanna give it a try? Download the latest release from the [release section](https://github.com/dertom95/Urho3D-Blender/releases).

Wanna give it a try? **Download the latest release from the [release section](https://github.com/dertom95/Urho3D-Blender/releases)**

**Caution**: Just using github-zip won't work due to missing submodules and missing urho3d-runtime


* install plugin in blender
* navigate to: edit->preferences->addons
* ->'Install...'->[downloaddir]/urho3d-blender-exporter.zip and enable the checkbox

**Caution** Since this addon depends on pyzmq, pyzmq is installed automatically if not present. If blender makes problems try to execute blender (once) as admin


**It is important to strictly follow this installation steps:**
[HOW to install and use](https://github.com/dertom95/Urho3D-Blender/wiki)

**Additional**
[Getting Started Video](https://www.youtube.com/watch?v=vyP0dXvh9Aw)
[Video Playlist](https://www.youtube.com/playlist?list=PL3dUhaUzMSSq0ngtTH6f_cj7jKKRhtzdM)

At the moment the handling with runtime, installation, addon dependencies is a bit compilcated but I will work on this to make it more user-friendly in the future.


**INFO** If you struggle to install this addon, there is [another exporter](https://github.com/1vanK/Urho3D-Blender/tree/2_80) also based on reattiva's addon for blender 2.8+ that might worker better for you.


Expand All @@ -40,6 +46,30 @@ Videos:
- [Collection Instances](https://www.youtube.com/watch?v=Ut0HJYpvuFc)
- [Armature Animation](https://www.youtube.com/watch?v=h2NS348L8X0)


Development
===========

blender-addons **addon_jsonnodetree** and **addon_blender_connect** are now integrated into this addon as submodule. Both are still working standalone

* To clone:
```
git clone --recurse-submodules https://github.com/dertom95/Urho3D-Blender.git
```

* To update:
```
git pull --recurse-submodules
```

* To build runtimes and create release.zip
```
./create_release.sh
```




------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
OLD INSTRUCTIONS
Expand Down

0 comments on commit e8c4651

Please sign in to comment.