I have a strange behaviour when trying to rename a track or a clip with a scene's name.
I'm using User Variables. The "MSG" functions throw the correct string ("Test"), while using the same variable (%ScnName%) with "NAME" functions (with both Clip and Track target) the first and last characters get truncated.
Not sure the proper way for this but put your variable In -%ScnName%- or ‘%ScnName’.... it should work
It works with both methods (- and '). Thanks!
But... why does it happen?
Can’t exactly say why but I’m pretty sure the cloths parser expects quotes around the action for name. And the first thing the parser does is look for the variables in the action list and replace them with the stored variable. So you’d get something like
1/clip(8) name Test from your first example.
and with the new one you’d get
1/clip(8) name ‘Test’
which is how the parser expects it. It’s possible the parser strips the first character and last character after the keyword “name”... I’d have to look at the code to really know what it does and don’t really have access to it. That is something stray could better answer.
also apologies for my formatted quotes... typing this on the iPad
Welcome to the forum, kenny89. The NAME-related actions require double-quotes around the name as shown in the examples in the manual. If you don't supply those, you'll lose the first and last characters of the name. By contrast, the MSG does not require double-quotes around the message to display.
Unfortunately, double-quotes and variables don't mix, so you need to use some other character (such as a hyphen) before and after the variable in this case. I'll look into refining this in the future as it is confusing.