Get the Params.Input[0].SourceCount in a compiled component

Hi everyone,

what works fine in the script component stays null using in a compiled component. It seems that the param doesn’t even get initialized until something gets wired.
What I am trying to achieve is

            if (any vector is connected)   //Component.Params.Input[0].SourceCount>0   
               use this vector
               use the normal

Thanks in advance and have a nice sunday!

Hi, just mark the input param as optional and specify a default value. This is done on the param registeration!

1 Like