blender-iks-to-fks
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -1,2 +0,2 @@ | ||
[Download the Addon file](https://github.com/chinedufn/blender-iks-to-fks/releases/download/1.2.0/convert-ik-to-fk.py) | ||
[Download the Addon file](https://github.com/chinedufn/blender-iks-to-fks/releases/download/1.3.0/convert-ik-to-fk.py) | ||
@@ -3,0 +3,0 @@ Go to your user preferences in Blender |
{ | ||
"name": "blender-iks-to-fks", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "A Blender script that takes a mesh and armature that use IKs and other non-deformation bones and creates a new mesh and armature that uses only FK bones", | ||
@@ -5,0 +5,0 @@ "main": "bin/ik2fk.js", |
@@ -40,6 +40,8 @@ var test = require('tape') | ||
var bothImagesRendered | ||
var beforeFile = path.resolve(__dirname, './before') | ||
var afterFile = path.resolve(__dirname, './after') | ||
// Render our model without converting it into FK | ||
cp.exec( | ||
`blender -b ${testBlendFile} --render-output ./before --render-frame 10 --render-format PNG`, | ||
`blender -b ${testBlendFile} --render-output ${beforeFile} --render-frame 10 --render-format PNG -noaudio`, | ||
function (err, stdout, stderr) { | ||
@@ -55,3 +57,3 @@ if (err) { throw err } | ||
cp.exec( | ||
`blender -b ${testBlendFile} --python ${runAddon} --render-output ./after --render-frame 10 --render-format PNG`, | ||
`blender -b ${testBlendFile} --python ${runAddon} --render-output ${afterFile} --render-frame 10 --render-format PNG -noaudio`, | ||
function (err, stdout, stderr) { | ||
@@ -75,3 +77,3 @@ if (err) { throw err } | ||
if (bothImagesRendered) { | ||
cp.exec('compare -metric RMSE before0010.png after0010.png /dev/null', function (_, stdout, stderr) { | ||
cp.exec(`compare -metric RMSE ${beforeFile}0010.png ${afterFile}0010.png /dev/null`, function (_, stdout, stderr) { | ||
// Compare will write the comparison to stderr. We parse their | ||
@@ -85,4 +87,4 @@ // It looks like this: | ||
// Delete our test renderings | ||
fs.unlinkSync('before0010.png') | ||
fs.unlinkSync('after0010.png') | ||
fs.unlinkSync(`${beforeFile}0010.png`) | ||
fs.unlinkSync(`${afterFile}0010.png`) | ||
@@ -89,0 +91,0 @@ t.ok(rootSquareMeanError < 0.0002, 'New mesh and armature have the same animations as the old mesh and armature') |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
312
2
2559610
16