LightPositionTool as a node

40 views
Skip to first unread message

Riccardo Cecchinato

unread,
Mar 9, 2026, 9:31:49 AM (4 days ago) Mar 9
to gaffer-dev
Hello dear Gaffer devs!
In Gaffer 1.6.6.1 I was wondering if there is a way to obtain the LightPositionTool behavior as a node.

An use case example:
using a locator on a surface to "aim" my spotlight reflection around that locator position all the time.

Thank you in advance for your always unvaluable help!

Riccardo


John Haddon

unread,
Mar 10, 2026, 6:37:02 AM (3 days ago) Mar 10
to gaffe...@googlegroups.com
Hi Riccardo,

I like the idea of a ReflectionConstraint node - feel free to open an issue for that on GitHub.

In the meantime, I've attached a simple little setup that achieves the same using an expression and a couple of transform queries. Probably needs refining to be useful, but hopefully gives you a good starting point.

Cheers...
John


--
You received this message because you are subscribed to the Google Groups "gaffer-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gaffer-dev+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/gaffer-dev/4dd4cd3e-cab6-4e30-b94c-e2ccfb32672an%40googlegroups.com.
reflectionConstraint.gfr

Riccardo Cecchinato

unread,
Mar 10, 2026, 1:50:46 PM (3 days ago) Mar 10
to gaffer-dev
Hello John!
More than happy to open an issue on GitHub but I never did it before, may I ask you any quick link and/or documentation that explains how to do so?

I started playing around with your network (thank you!!), trying to implement it on an eye_rig node I developed last year.
I guess "locking" a spotlight reflection over a specific part of a spherical mesh is a pretty specific use case, since I am not obtaining visual results for the moment (but the spotlights are positioning is a somewhat logical way).
I'll keep you posted on the advancements and open the issue as soon as I understand how to do it properly!

Thanks a million,
Riccardo

Riccardo Cecchinato

unread,
Mar 11, 2026, 7:17:39 AM (2 days ago) Mar 11
to gaffer-dev
Hello John!

After having extracted the normal of my geometry target, I managed to successfully implement your node to my eye rig. Very exciting to see the placement fully automatized thanks to your math and the incoming animation rig!
Lots of possibilities and ways to improve the system to make it less "fake", but considering it is already based on physical lights, it's already a great starting point.

As usual, thanks a million for your always punctual help. Still eager to open the GitHub issue as soon as I understand how to do it in the proper way!

Best,
Riccardo

John Haddon

unread,
Mar 11, 2026, 7:50:44 AM (2 days ago) Mar 11
to gaffe...@googlegroups.com
On Wed, Mar 11, 2026 at 11:17 AM Riccardo Cecchinato <rcecc...@stimstudio.com> wrote:
After having extracted the normal of my geometry target, I managed to successfully implement your node to my eye rig. Very exciting to see the placement fully automatized thanks to your math and the incoming animation rig!

That's great! Glad you got it working...
Cheers...
John 
Reply all
Reply to author
Forward
0 new messages