I have a preframe script that does a frame substitution on an attribute value but it's not being saved after the script is run.
Part of the USD file being rendered:
custom string ri:samplefilter0:name = "PxrCryptomatte"
custom string ri:samplefilter0:PxrCryptomatte:filename = "/path/to/render/dir/cryptomatte/renderproduct.cryptomatte.$F.exr"
I'm attempting to replace $F with the current frame from hou.frame() but the cryptomatte exr is still being written out with $F in it instead of the actual frame number.
I've confirmed the attribute value is being set on the stage by getting the attribute again and printing it.
Any help please?
Thanks
Michael