glitch3d 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/glitch3d +1 -1
- data/lib/glitch3d/bpy/helpers.py +1 -1
- data/lib/glitch3d/version.rb +1 -1
- data/lib/glitch3d.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e1a71f7cd63e8996ed35f0cfa9547c6deaf82fb
|
4
|
+
data.tar.gz: 4d6748c56917cd99826d957cb315fadfb3e21bb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e98a02291a4dd6cb09f731213da1b22fe681c8c366ec99dca8fbb72846ccf59e549864027ff6a92670c5fb61cc2273724cee882f070cc9fc4c4f792ee0a0571e
|
7
|
+
data.tar.gz: 3874a889c7250ce85ddb7b2324e97d5389df861c99c9c6e9c87273244db25f636d414dbb3d652855cd76a6a619369adb3fe7ac7210c34e60207a30d68fbdb935
|
data/bin/glitch3d
CHANGED
data/lib/glitch3d/bpy/helpers.py
CHANGED
@@ -57,7 +57,7 @@ def shoot(camera, model_object, filepath):
|
|
57
57
|
bpy.ops.render.render(write_still=True)
|
58
58
|
|
59
59
|
def output_name(index, model_path):
|
60
|
-
return './renders/' + os.path.splitext(model_path)[0].split('/')[1] + '_' + str(index) + '_' + str(datetime.date.today()) + '.png'
|
60
|
+
return './renders/' + os.path.splitext(model_path)[0].split('/')[-1] + '_' + str(index) + '_' + str(datetime.date.today()) + '.png'
|
61
61
|
|
62
62
|
def rotate(model_object, index):
|
63
63
|
model_object.rotation_euler[2] = math.radians(index * (360.0 / shots_number))
|
data/lib/glitch3d/version.rb
CHANGED
data/lib/glitch3d.rb
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
require 'glitch3d/version'
|
3
3
|
require 'glitch3d/objects/vertex'
|
4
4
|
require 'glitch3d/objects/face'
|
5
|
+
|
5
6
|
Dir[File.dirname(__FILE__) + '/glitch3d/strategies/*.rb'].each { |file| require file }
|
6
7
|
|
7
8
|
module Glitch3d
|
@@ -25,6 +26,7 @@ module Glitch3d
|
|
25
26
|
end
|
26
27
|
|
27
28
|
def process_model(source_file)
|
29
|
+
source_file = File.dirname(__FILE__) + '/../fixtures/cube.obj' if source_file.nil?
|
28
30
|
args = Hash[ARGV.join(' ').scan(/--?([^=\s]+)(?:=(\S+))?/)]
|
29
31
|
return clean_model(source_file) if args['clean']
|
30
32
|
raise 'Set Blender executable path in your env variables before using glitch3d' if BLENDER_EXECUTABLE_PATH.nil?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glitch3d
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- pskl
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|