Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Ability to sparsely gather scalar values and connect them to elements of a dynamic or statically sized array parameter #1826

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Jun 7, 2024

  1. Add support for connecting individual scalar outputs to a dynamic arr…

    …ay input.
    
    This requires you to first declare a setting for the dynamic array input that
    will be used to size and provide values for any unconnected elements of the
    dynamically sized array.  After that, individual scalar->arrayelem connections
    can be specified from any number of different upstream shading nodes.  This
    facilitates gathering inputs from across your shading network, for example
    several procedurally generated color signals and using them to drive inputs
    to shading nodes that are best left dynamically sized, such as the inputs
    to spline operations.
    
    This includes a new test in vararray-scalar-connect to demonstrate and
    test the new connection method.
    :
    
    Signed-off-by: Stephen Friedman <[email protected]>
    sfriedmapixar committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    2de0c62 View commit details
    Browse the repository at this point in the history
  2. When connecting individual scalar elements to an array, we don't need…

    … to init the values that upstream nodes will overwrite, so remove that to simplify.
    
    Signed-off-by: Stephen Friedman <[email protected]>
    sfriedmapixar committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    c80f5e0 View commit details
    Browse the repository at this point in the history