Author Topic: Having problems with negative values... bug?  (Read 1636 times)

Hi there,
I just wrote a simple utility to remap the HSL node to photoshop's Hue/Saturation/Value parameters.
You can find it here

Now, if I substitute the inputColor node directly inside of HSL_Photoshop.sbs, everything works fine.
But, as soon as I instantiate it in another graph, negative values always appear to be broken.
Is it a bug, or am I doing something wrong?

Thanks!

P.S. Forgive some redundant nodes in the functions... some of them are there for debug purposes.

EDIT:
I've updated the link with the fixed substance:HSL_Photoshop.sbs
Last Edit: August 04, 2015, 09:38:44 am

Negative integers are not very well supported...
Using float instead will solve the problem.

You can set the input parameter step to 1 to get rid of the floating point value.
Product Manager - Allegorithmic

Hi Nicolas,

Thank you for your reply.
I've updated the above substance using floats and it works :)
Now, I think that this is something should be fixed, or limited in a way.
Perhaps if it is not possible to fix it, just limit integers parameters to positive values only or better document the issue?

Thanks again for your help!