BP - Getting a string from console (Get int broken?)

I’m trying to create an option to toggle motion blur in my options menu, and for that I need to read the value of r.MotionBlur.Amount.

If it is any value other than 0, it’s considered on, and so the checkbox should be checked. I have all the logic in place and tested, but there’s an issue with retreiving the value from the console.

I’m using a BP node called “Get Console Variable Int Value” but despite the console saying that the value of r.MotionBlur.Amount = “-1”, it always returns 0.

I tried it with other int values in the console, and I tried using delays before reading the fetched value, but it always just returns 0.

In other words, setting the value works, but not getting it.

Here’s my theory. I wonder if perhaps the console variable values are converted to strings when set, so when you manually type r.MotionBlur.Amount 5 it becomes “5”, because when querying a value manually in the console, it reports it with quotation marks.

But then how do we get that value, and what is the point of Get Console Variable Int Value if all cvars are strings now?

Why don’t we have a BP node like “Get Console Variable Int Value” but for strings? Maybe my theory is wrong and it wouldn’t solve this issue I’m having, but would certainly be useful for reading other strings from the console.

Also, in my opinion, Get Console Variable Int Value should return something implausible like -9999 if not found, or even better, have a bool output of whether a match was found, rather than just return 0, which could mean that a variable was found but set to “false” basically.

1 Like

Still broken in 4.22. Get console variable int value still returns 0 for everything you throw at it.

So I’m not the only one wondering about this! Trying to fetch r.ScreenPercentage
Warning: Failed to find console variable ‘r.ScreenPercentage’.
maybe I’m failing to understand what Get Console Variable Int Value really does.