GafferHQ / gaffer

Gaffer is a node-based application for lookdev, lighting and automation
http://www.gafferhq.org
BSD 3-Clause "New" or "Revised" License
965 stars 207 forks source link

GafferArnold : Light filter node float plugs are unclamped #3102

Open medubelko opened 5 years ago

medubelko commented 5 years ago

Version: Gaffer 53.1.0.0 Third-party tools: Arnold Third-party modules: None

Description

Not sure whether to file this under bug or oversight, but @mattigruener suggested I bring it up. In our node implementation of the Arnold light filters, we don't clamp the following float plug values:

Maya's implementation clamps these.

Arnold may accept any float value, but it's probably worth it to prevent the user from inputting non-meaningful inputs. I'm not sure how this fits into our other practices with float clamping. Do we have any kind of standard in place?

johnhaddon commented 5 years ago

For Gaffer's native nodes, generally we have hard min/max values to prevent any plugs from being given values that are invalid for their particular use.

So I think we should :