[Bf-extensions-cvs] [4f5adef6] master: Fix T69664: Update add-ons for Mapping node changes.
OmarSquircleArt
noreply at git.blender.org
Mon Sep 9 18:19:44 CEST 2019
Commit: 4f5adef69dea869cbbe472c705fd09b1ee8d6b74
Author: OmarSquircleArt
Date: Mon Sep 9 18:19:00 2019 +0200
Branches: master
https://developer.blender.org/rBAC4f5adef69dea869cbbe472c705fd09b1ee8d6b74
Fix T69664: Update add-ons for Mapping node changes.
The Mapping node was update to have dynamic inputs that can be linked.
Moreover, the min and max options were removed entrily. This broke
add-ons that used the Mapping node, so this patch fixes those add-ons.
Reviewers: brecht
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D5733
===================================================================
M automat/blur.json
M automat/seamless_vector.json
M lighting_hdri_shortcut/__init__.py
===================================================================
diff --git a/automat/blur.json b/automat/blur.json
index 8ad84100..1402aff7 100644
--- a/automat/blur.json
+++ b/automat/blur.json
@@ -48,8 +48,8 @@
"label": "Noise source",
"type": "ShaderNodeTexNoise",
"location": [-600, -150],
- "inputs[1].default_value": "1000.0"
+ "inputs['Scale'].default_value": "1000.0"
}
]
-}
\ No newline at end of file
+}
diff --git a/automat/seamless_vector.json b/automat/seamless_vector.json
index ed0e0f34..cbf70e69 100644
--- a/automat/seamless_vector.json
+++ b/automat/seamless_vector.json
@@ -119,7 +119,7 @@
"in": [
["Texture Coordinate", "\"UV\"", 0]
],
- "inputs[1].default_value": 100000.0
+ "inputs['Scale'].default_value": 100000.0
},
{
"type": "ShaderNodeMapping",
@@ -129,7 +129,7 @@
["Texture Coordinate", "\"UV\"", 0]
],
"vector_type": "\"TEXTURE\"",
- "translation": "(0.5, 0.5, 0)"
+ "inputs['Location'].default_value": "(0.5, 0.5, 0)"
},
{
"type": "ShaderNodeMixRGB",
@@ -167,7 +167,7 @@
"label": "Prepare Randomization",
"location": [1605, 0],
"in": [
- ["Random Number Generator", 0],
+ ["Random Number Generator", "\"Color\""],
["Adjust slope 2", 0]
],
"operation": "\"MULTIPLY\"",
diff --git a/lighting_hdri_shortcut/__init__.py b/lighting_hdri_shortcut/__init__.py
index b97f4bc7..1818837f 100644
--- a/lighting_hdri_shortcut/__init__.py
+++ b/lighting_hdri_shortcut/__init__.py
@@ -153,7 +153,7 @@ def update_mirror(self, context):
def update_orientation(self, context):
try:
- node_map.rotation[2] = self.orientation
+ node_map.inputs['Rotation'].default_value[2] = self.orientation
#node_map.rotation[2] = (self.orientation * 0.0174533)
except:
pass
@@ -388,7 +388,7 @@ def setup(img_path):
node_blur_noise = nodes.new('ShaderNodeTexNoise')
node_blur_noise.location = 0, 800
node_blur_noise.name = "BLUR_NOISE"
- node_blur_noise.inputs[1].default_value = 10000
+ node_blur_noise.inputs['Scale'].default_value = 10000
node_blur_mix_1 = nodes.new('ShaderNodeMixRGB')
node_blur_mix_1.location = 200, 800
@@ -435,7 +435,7 @@ def setup(img_path):
link15 = links.new(node_reflexion.outputs[0], node_ref_mix.inputs[2])
link16 = links.new(node_ref_mix.outputs[0], node_out.inputs[0])
# blur group links
- link17 = links.new(node_blur_noise.outputs[0], node_blur_mix_1.inputs[2])
+ link17 = links.new(node_blur_noise.outputs['Color'], node_blur_mix_1.inputs[2])
link18 = links.new(node_blur_mix_1.outputs[0], node_blur_math_add.inputs[1])
link19 = links.new(node_blur_math_add.outputs[0], node_blur_math_sub.inputs[0])
link20 = links.new(node_blur_mix_2.outputs[0], node_blur_math_sub.inputs[1])
More information about the Bf-extensions-cvs
mailing list