Skip to content

Commit

Permalink
Support for Blender 2.80+ (#20)
Browse files Browse the repository at this point in the history
* Updates to script based on Blender 2.80 API changes

Changed the way objects are created and selected/deselected based on upcoming changes to the Blender 2.80 Python API.
There's still a bug with the Blender OBJ import script, so this doesn't work yet. Waiting maybe for a 2.80 release candidate.

* Updated version information for Blender 2.80

* Updated blender version, addon loads without errors

There are still problems with creating a mesh sequence and selecting it.

* Update script for blender 2.8's modified API

* Fix calls to select_set()

Still broken: sequences with a single material, baking?

* Rename file, use correct collection for sequence baking

* Update README

* version bump

* Feature: reload sequence from disk (#16)

* Initial code for reloading sequences from disk

* Re-add the emptyMesh to the mesh_sequence_settings object

* Cleanup old meshes, early error if no files match, minor code refactor

* version bump

* Fixed broken PLY import

* Version bump, updated README
  • Loading branch information
neverhood311 authored Jul 7, 2019
1 parent 7ada13f commit 254de4d
Show file tree
Hide file tree
Showing 2 changed files with 724 additions and 633 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Stop-motion-OBJ
A Blender add-on for importing a sequence of meshes as frames

Stop motion OBJ allows you to import a sequence of OBJ (or STL or PLY) files and render them as individual frames. Have a RealFlow animation but want to render it in Blender? This addon is for you! Currently tested for Blender 2.79.1.
Stop motion OBJ allows you to import a sequence of OBJ (or STL or PLY) files and render them as individual frames. Have a RealFlow animation but want to render it in Blender? This addon is for you! There are now two versions:
- [v2.0.0](https://github.com/neverhood311/Stop-motion-OBJ/releases/tag/v2.0.0) for **Blender 2.80+**
- [r1.1.1](https://github.com/neverhood311/Stop-motion-OBJ/releases/tag/0.2.79.2) for Blender 2.79 (also tested for 2.77 and 2.78). This version is now deprecated and will no longer be supported

If you find this add-on helpful, please consider donating to support development:

Expand All @@ -19,6 +21,8 @@ PayPal: https://www.paypal.me/justinj
- Supports shapes with UVs and image textures
- Variable playback speed
- Multiple playback modes
- Reload from disk
- If you change your mesh sequence, you can reload the sequence into the existing object without deleting it and creating a new one
- Object can have different materials on each frame
- For instance, you can have a different MTL file for each OBJ file
- Bake sequence
Expand All @@ -38,7 +42,7 @@ PayPal: https://www.paypal.me/justinj
- Sequences can now be duplicated, but they share a material. For a duplicate sequence with a different material, you have to re-import the sequence.

## Installing Stop motion OBJ
- Download mesh_sequence_controller.py and move it to Blender's addons folder (something like C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons)
- Download mesh_sequence_controller.py and move it to Blender's addons folder (something like C:\Program Files\Blender Foundation\Blender\2.80\scripts\addons)
- Open Blender and open the Add-ons preferences (File > User Preferences... > Add-ons)
- In the search bar, type 'OBJ' and look for the Stop motion OBJ addon in the list
- Check the box to install it, and click 'Save User Settings'
Expand All @@ -50,7 +54,7 @@ PayPal: https://www.paypal.me/justinj
- The object will initially be empty. We need to load a mesh sequence into it.
- Make sure the object is selected.
- In the properties panel, click on the Object Properties tab (the little orange cube icon). In the settings panel, scroll down to find the Mesh Sequence subpanel and open it.
- Enter the Root Folder by clicking on the folder button and navigating to the folder where the mesh files are stored. **Make sure to UNCHECK ‘Relative Path’**
- Enter the Root Folder by clicking on the folder button and navigating to the folder where the mesh files are stored. ~~**Make sure to UNCHECK ‘Relative Path’**~~
- In the File Name box, enter a common prefix of the files.
- ex: If you have frame001, frame002, frame003, you could enter ‘frame’, 'fram', or even 'f'
- If your sequence has a different material for each frame, check the "Material per Frame" checkbox. Otherwise, leave it unchecked.
Expand All @@ -66,3 +70,6 @@ PayPal: https://www.paypal.me/justinj
- Once your sequence is loaded, you can change the shading (smooth or flat) of the entire sequence:
- The shading buttons are found in the Mesh Sequence Settings for the object
- Note: The normal shading buttons (in the 3D View "Tools" panel) will only affect the current frame, not the entire sequence
- If you change your mesh sequence and want to reload it without creating a new sequence object, click 'Reload From Disk'
- This will use the original Root Folder and File Name that you initially specified
- If your updated sequence has more or fewer frames than the original one, the updated sequence object will reflect this change
Loading

0 comments on commit 254de4d

Please sign in to comment.