SimplSam wrote: ↑Tue Aug 08, 2023 6:01 pm
Well I'll be dammed. I always thought that it was a built-in 'system' feature. Very handy!
Indeed, it could be handy, if it works (and installed intentionally)

However I find it a bit scary tho that some script is fired even though we're not using the tool and the tool is meant to do a complete other thing. I would rather like to know it if something gets fired and not firing something that I don't even know about tbh. I mean, what else does it do? And if something in MOho is not working quite right, is it an issue in Moho, or caused by some background script doing something?!
I wished it didn't do this. Guess now I will uninstall both
lk_nudge_keys and
lk_togglekeysfilter because it's obviously doing more than it should by the name of the tool. I would've liked it better if it would've been a seperate thing we choose to install rather than to fire something in the background. No offense to Lukas tho, these are clearly great helpful tools. It's me not liking things to go off in the background, without installing it intentionally or pressing/clicking something. When I install a tool to do A, I don't like it if it does B, C, D and F in the background. I think a tool should only do what is advertised.
Anyways, I see what the issue is now. The regular expression in the nameless bone detection is not right. It's detecting if there is a
B followed by numbers, but it doesn't say that it must
START with a
B. So with that script now nameless are names starting with
B and numbers, but also when the
B and numbers are somewhere in the middle or end of the name.
In my file I am using many names ending with
B followed by a number, like
jaw.B2 which is now wrongly seen as nameless.
I don't know lua, but I do know regular expressions. To fix this the regex should start with a
^ character to indicate the following expression should be found from the start of the string/bone name.
Than this is nameless:
B42, but this is not:
level.B42
Like so:
[edit] Not sure why this string uses %d instead of the normal \d as used in regular expressions tho, but it has two other issues now;
At the moment this is ALSO found to be nameless: '
B42a' and this now is found to have a name, while this should be nameless: '
B1234'.
So to have everything full covered the regular expression should be this:
^B\d(\d)*$
(= ^ to Start with a B, followed by at least one digit (\d), than followed by zero or more digits and after that it must be the end of the name ($))
Not sure how to write this in the lua string, but my guess would be:
"^B%d(%d)*$"
Hope Lukas reads this
