Jump to content

Any examples of using the lock expression?


Recommended Posts

I checked from the help file and tried myself but it didn't make much sense.

What's the use of this expression?

If I put in a value of 4.5 to tx, then it's as static as lock(4.5).

I thought it freezes the value at the time it's locked. For example if I use lock($F) at frame 20, then the parameter value would be locked at 20, regardless of frame change later on.

Link to comment
Share on other sites

I've never seen this before.

"This function simply returns the value of its argument. However, it is special in that if an expression is enclosed in a lock function, then its values cannot be changed, until the lock expression is removed."

I'm having a hard time interpreting this description from the manual. The word "enclosed" seems to imply abstraction or bracing but not argument passing (to me at least), and then the word "its". To which is it referring? The lock functions return value or the expression that was enclosed? This dates back to H9 by the way.

The parameter field turns grey when you use it, but that's about all it does for me.

  • Like 1
Link to comment
Share on other sites

I thought it freezes the value at the time it's locked. For example if I use lock($F) at frame 20, then the parameter value would be locked at 20, regardless of frame change later on.

I interrupted the manual differently. So that the value returned by lock(..) can not be modified. So that lock($F)+1 on frame 20 would result in 20 and not 21.

Link to comment
Share on other sites

They mean so that you can't edit the parameter in value mode.

If you want an expression that simply matches the segment's input value, use $IV.

If you want to freeze a channel (or channel range) at some particular value (at a specific frame), then you want to use the "disable" feature in the Dopesheet.

  • Like 1
Link to comment
Share on other sites

That seems useless to me, because if you have an expression like $F. You can edit the displayed value, but it won't be kept if you change frames.

Sure, but not so useless if your expression was like cubic().

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...