User Data and Color Jitter

90 views
Skip to first unread message

Mélissa Armangau

unread,
Jul 3, 2024, 11:21:48 AMJul 3
to gaffer-dev
Hey, 

I'm having some issues with the Arnold Color Jitter in Gaffer. I have exported a groom from Houdini (which has an id attribute) and I'm trying to do the lookdev of it with a Arnold StandardHair into which I plug a Arnold Color Jitter.
But to use my ColorJitter, in maya I usually plug a UserDateFloat or UserDateInt (in which I have my id attribute) into the DataInput of the ColorJitter, but in gaffer I can't connect anything into the DataInput of the ColorJitter... I tried severals things but I can't make it work.. How can I connect something into the DataInput ? Or are there other ways to give ColorJitter attributes from the groom? 

Thanks!

Rachid Hadj abderrahmane

unread,
Jul 3, 2024, 2:14:00 PMJul 3
to gaffer-dev
1- Select the ColorJitter node
2- Grab the Out from UserDataFloat or UserDataInt and drag it to ColorJitter Data Input ( not the Input)
Hope this help !

Murray Stevenson

unread,
Jul 3, 2024, 3:03:43 PMJul 3
to gaffe...@googlegroups.com
Hey,

It appears that we're not exposing nodules for int shader parameters by default, so data_input isn't available on the node in the Graph Editor. We should be able to address that quickly, but until then you can still make a connection by dragging from the UserData out plug in the Graph Editor to the ColorJitter data_input plug in the Node Editor, or pasting the below into a Graph Editor will create a ColorJitter shader with the data_input nodule made available by registering some additional metadata to the plug.

Cheers,

Murray

---

import Gaffer
import GafferArnold
import imath

Gaffer.Metadata.registerValue( parent, "serialiser:milestoneVersion", 1, persistent=False )
Gaffer.Metadata.registerValue( parent, "serialiser:majorVersion", 4, persistent=False )
Gaffer.Metadata.registerValue( parent, "serialiser:minorVersion", 8, persistent=False )
Gaffer.Metadata.registerValue( parent, "serialiser:patchVersion", 0, persistent=False )

__children = {}

__children["ColorJitter"] = GafferArnold.ArnoldShader( "ColorJitter" )
parent.addChild( __children["ColorJitter"] )
__children["ColorJitter"].loadShader( "color_jitter" )
__children["ColorJitter"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
Gaffer.Metadata.registerValue( __children["ColorJitter"]["parameters"]["data_input"], 'nodule:type', None )
Gaffer.Metadata.registerValue( __children["ColorJitter"]["parameters"]["data_input"], 'noduleLayout:visible', True )

del __children



--
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 on the web visit https://groups.google.com/d/msgid/gaffer-dev/18479e9f-a308-4d89-9905-f67edb2a7bcfn%40googlegroups.com.

Mélissa Armangau

unread,
Jul 4, 2024, 3:17:43 AMJul 4
to gaffe...@googlegroups.com
Hey, 

Thanks a lot, it's working well ! Indeed, I was trying to drag and drop with the middle click button but not to directly take the User Data output  with my left clic button from the Graph Editor into the Data Input parameter which is in the Node Editor.

Thank you for your quick response, 

Mélissa

You received this message because you are subscribed to a topic in the Google Groups "gaffer-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gaffer-dev/7dlChd4_Usg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gaffer-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gaffer-dev/CAOjnMaxjE7MGhiHb5eD6iW5%3Dhzq313B78dfWNT%3Dg8qLaZHXDLg%40mail.gmail.com.

John Haddon

unread,
Jul 4, 2024, 5:32:29 AMJul 4
to gaffe...@googlegroups.com
Glad you got it working - I've opened a PR to make it visible by default in the next Gaffer release : https://github.com/GafferHQ/gaffer/pull/5936.
Cheers...
John

Murray Stevenson

unread,
Jul 11, 2024, 6:12:04 PMJul 11
to gaffe...@googlegroups.com
Hi,

Just a quick update to say that we've included this improvement in today's Gaffer 1.4.9.0 release. In the process we also found a variety of other Arnold int shader parameters that were missing nodules in the Graph Editor, so we've improved those as well. You can find the complete list in the release notes.

Cheers,

Murray

Reply all
Reply to author
Forward
0 new messages