Page Menu
Home
Search
Configure Global Search
Log In
Files
F19023
NodeGroup_links_new_crash.py
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Philipp Oeser (lichtwerk)
Nov 13 2013, 4:13 PM
Size
512 B
Subscribers
None
NodeGroup_links_new_crash.py
View Options
import
bpy
oNodeGroup
=
bpy
.
data
.
node_groups
.
new
(
"debugging"
,
"SHADER"
)
oTexNode
=
oNodeGroup
.
nodes
.
new
(
"TEX_IMAGE"
)
oVectorSock
=
oNodeGroup
.
inputs
.
new
(
name
=
"Vector"
,
type
=
"VECTOR"
)
oRGBASock
=
oNodeGroup
.
outputs
.
new
(
name
=
"Color"
,
type
=
"RGBA"
)
oNodeGroup
.
links
.
new
(
oVectorSock
,
oTexNode
.
inputs
[
'Vector'
])
# this is the right order
#oNodeGroup.links.new(oRGBASock, oTexNode.outputs['Color'])
# in this order, blender will crash
oNodeGroup
.
links
.
new
(
oTexNode
.
outputs
[
'Color'
],
oRGBASock
)
File Metadata
Details
Mime Type
text/plain
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
19/7c/047dcd8f943a97a456a337fec6d5
Event Timeline
Log In to Comment