Skip to content
Snippets Groups Projects
Select Git revision
  • 14106150797a6ce35e006ffde18e78ea7ae67598
  • CyclesPhi-dev default
  • anary-cycles-device
  • xml-exporter-main
  • anari
  • main protected
  • npr-prototype
  • blender-v4.4-release
  • blender-v4.2-release
  • remote-asset-library-monolithic
  • blender-v3.6-release
  • blender-v4.3-release
  • temp-sculpt-dyntopo
  • blender-v3.3-release
  • brush-assets-project
  • pr-extensions-tidy-space
  • blender-v4.0-release
  • universal-scene-description
  • blender-v4.1-release
  • blender-v3.6-temp_wmoss_animrig_public
  • gpencil-next
  • v4.4.0
  • v4.2.8
  • v3.6.21
  • v4.2.7
  • v3.6.20
  • v4.2.6
  • v4.3.2
  • v4.2.5
  • v3.6.19
  • v4.3.1
  • v4.3.0
  • v3.6.18
  • v4.2.4
  • v3.6.17
  • v4.2.3
  • v3.6.16
  • v4.2.2
  • v4.2.1
  • v3.6.15
  • v4.2.0
41 results

templates_py

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Damien Picard authored and Hans Goudey committed
    Currently the multi-input sockets are not exposed to the custom nodes
    Python API. This makes some features cumbersome to implement if one
    wants a node to process an arbitrary number of inputs.
    One workaround is to make inputs duplicate themselves when a link is
    created, but a proper multi-input would be easier to use for both
    add-on developers and users.
    
    This commit exposes a new `use_multi_input` boolean parameter when
    creating a new node socket. This makes it possible to declare a
    multi-input, while still leaving the existing `is_multi_input`
    property read-only so that existing nodes cannot be made unstable.
    
    The parameter is optional so existing scripts stay compatible. It also
    raises an error when used on output sockets, since it makes no sense
    for those to be multi-input.
    
    The Custom Node Tree Python template was updated to reflect this
    change by making one of the inputs of the custom node multi-input.
    
    Pull Request: https://projects.blender.org/blender/blender/pulls/114474
    14106150
    History