diff --git a/README.md b/README.md index b505853..3b1d4ea 100644 --- a/README.md +++ b/README.md @@ -25,15 +25,16 @@ PayPal: https://www.paypal.me/justinj - This allows the sequence to be viewed on other computers without installing the addon (in a renderfarm, for example) ### Limitations -- Only absolute filepaths are supported (for now) +- No motion blur +- Only single-object files are supported +- ~~Only absolute filepaths are supported~~ + - Fixed in [https://github.com/neverhood311/Stop-motion-OBJ/pull/17](https://github.com/neverhood311/Stop-motion-OBJ/pull/17) - ~~File numbers must be zero-padded~~ - Sorting file with correct order is added in [this PR](https://github.com/neverhood311/Stop-motion-OBJ/pull/15) - Files like file1, file2, file3 will be loaded in correct order, and zero-padded filenames still work, too. -- No motion blur - ~~Doesn't work with physics~~ - (It actually works with rigid body physics. In Rigid Body Collisions set Shape to 'Mesh' and Source to 'Base') -- Only single-object files are supported -- ~~Sequences can't be duplicated (for now)~~ +- ~~Sequences can't be duplicated~~ - 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 diff --git a/mesh_sequence_controller.py b/mesh_sequence_controller.py index 1a31c42..52ce107 100644 --- a/mesh_sequence_controller.py +++ b/mesh_sequence_controller.py @@ -168,8 +168,9 @@ def loadSequenceFromFile(self, _obj, _dir, _file): format = 'ply' importFunc = bpy.ops.import_mesh.ply #combine the file directory with the filename and the .obj extension - full_filepath = os.path.join(_dir, _file + '*.' + format) - print(full_filepath) + full_dirpath = bpy.path.abspath(_dir) + full_filepath = os.path.join(full_dirpath, _file + '*.' + format) + numFrames = 0 unsortedFiles = glob.glob(full_filepath) # Sort the given list in the way that humans expect. @@ -488,7 +489,7 @@ def execute(self, context): num = MSC.loadSequenceFromFile(obj, dirPath, fileName) if(num == 0): - self.report({'ERROR'}, "Invalid file path. Make sure the Root Folder, File Name, and File Format are correct. Make sure to uncheck 'Relative Path'") + self.report({'ERROR'}, "No matching files found. Make sure the Root Folder, File Name, and File Format are correct.") return {'CANCELLED'} return {'FINISHED'}