Using locators to parent corresponding geometry in Gaffer ?

38 views
Skip to first unread message

s.des...@gmail.com

unread,
Jun 26, 2025, 11:45:34 AMJun 26
to gaffer-dev

Hi,

I’ve done some set dressing in Maya and I’d like to recreate it in Gaffer.
I exported some locators with the transforms of my objects, and now I’d like to parent the corresponding geometry to each locator.

Is that something I can do using the Parent node?
What would be the best way to go about it?

If you have an example file to share, that would be super helpful.

Thx,


Seb

John Haddon

unread,
Jun 30, 2025, 9:19:54 AMJun 30
to gaffe...@googlegroups.com
Hi Seb,

Yes, the Parent node is a good choice for this use case. The key is to use the `parentVariable` plug to create a context variable containing the location you are parenting to. This can be used upstream to vary the child based on the destination. I've attached a simple example which uses a spreadsheet to choose which cache is loaded on a per location basis, but that's just one way of doing it. An alternative might be to have custom attributes on your locators containing the cache filename, and use an AttributeQuery node to fetch that and feed it into the SceneReader.

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/f22acaa6-0eeb-4ce6-aa8f-deb11420acaan%40googlegroups.com.
parentExample.gfr
Reply all
Reply to author
Forward
0 new messages