The syntax error is from the backticks around the expression. These are only for evaluating expressions as literals in string parameters. Numeric parameters always evaluate expressions because the expression is always a keyframe.
I see that I cannot use the detail function in a field that expects an integer otherwise it sets a key. At least this is true for frame range fields.
So I added an null (exactly like the example file above) and that null had a string attribute that I put the detail function. then I copied a reference to this field and pasted it into the frame range field and it now works.
Edited by geordiemartinez - July 13, 2022 20:15:59
geordiemartinez I see that I cannot use the detail function in a field that expects an integer otherwise it sets a key. At least this is true for frame range fields.
So I added an null (exactly like the example file above) and that null had a string attribute that I put the detail function. then I copied a reference to this field and pasted it into the frame range field and it now works.
What's wrong with setting a key? no ` required. I use keyframes on string parameters too.
I can't get it to work in a time range attribute on an Alembic ROP the same way it would in a string attribute. I don't want to set a key because I will use different length alembics and always want the end value to be relative to the alembic length.