Hello Ventuzians!
THE FORUMS ARE CLOSED!
Please join our discord server HERE!! << click me
We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server
Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!
THE FORUMS ARE CLOSED!
Please join our discord server HERE!! << click me
We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server
Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!
Caps Lock State Node?
Moderator: Support
- shermanpat
- Posts: 122
- Joined: 21 Feb 2012, 22:03
- Location: SLC Ut USA
Caps Lock State Node?
Was trying to us the Caps Lock button as a bool to change some controls in a program with feedback on the keyboard for the user. But I didn't see any node that tell me what the state of the Cap Lock key is. Am I just forgetting about a node?
Thanks
Thanks
-Sherman
Meru Interactive
Meru Interactive
Re: Caps Lock State Node?
Hi Sherman,
Connect a keyboard node to the toggle input of a toggle node. Obviously this is dependant on the current state of the caps lock key during scene start up, but that the only way to get the cap locks key to fire a bool, unless you use a script.
Chris
Connect a keyboard node to the toggle input of a toggle node. Obviously this is dependant on the current state of the caps lock key during scene start up, but that the only way to get the cap locks key to fire a bool, unless you use a script.
Chris
- shermanpat
- Posts: 122
- Joined: 21 Feb 2012, 22:03
- Location: SLC Ut USA
Re: Caps Lock State Node?
That is what I did for a work around which can break depending on what the state is at time of opening the scene. But I can work with that for this scenes needs, was just looking to use the light on the keyboard as a notice for a toggle of a Cut or Fade animation types.
-Sherman
Meru Interactive
Meru Interactive
Re: Caps Lock State Node?
Just thought, you'll need to connect a scene event node to the script method to recheck the caps lock on scene start up
- shermanpat
- Posts: 122
- Joined: 21 Feb 2012, 22:03
- Location: SLC Ut USA
Re: Caps Lock State Node?
Thanks for sharing, will test it out in a few days.
-Sherman
Meru Interactive
Meru Interactive
- shermanpat
- Posts: 122
- Joined: 21 Feb 2012, 22:03
- Location: SLC Ut USA
Re: Caps Lock State Node?
So simple, thanks.
I never know where to start when trying to create scripts like this. But when I see them it makes good sense, gotta work on my scripting know how!
I never know where to start when trying to create scripts like this. But when I see them it makes good sense, gotta work on my scripting know how!
-Sherman
Meru Interactive
Meru Interactive
Re: Caps Lock State Node?
You don't even need a Script for that:
Create an Int expression node with the following expression
Convert.ToInt32(System.Console.CapsLock)
this node outputs: 0 or 1
Or a String Expression with
System.Console.CapsLock.ToString()
output: True or False
Everytime you change any of the inputs of these expressions they give you the current CapsLock state.
You can connect both expression outputs to a Bool Node to cast it into a boolean value.
Create an Int expression node with the following expression
Convert.ToInt32(System.Console.CapsLock)
this node outputs: 0 or 1
Or a String Expression with
System.Console.CapsLock.ToString()
output: True or False
Everytime you change any of the inputs of these expressions they give you the current CapsLock state.
You can connect both expression outputs to a Bool Node to cast it into a boolean value.
Re: Caps Lock State Node?
This is a great point Eric!
I always over look the fact that these things can be accomplished in the expression nodes.
Can you call on any namespace from the expression nodes?? or is it just certain ones from the .net library??
Cheers
Chris
I always over look the fact that these things can be accomplished in the expression nodes.
Can you call on any namespace from the expression nodes?? or is it just certain ones from the .net library??
Cheers
Chris
- shermanpat
- Posts: 122
- Joined: 21 Feb 2012, 22:03
- Location: SLC Ut USA
Re: Caps Lock State Node?
That sure makes it simple to just do that in a expression node. Thanks for sharing.
-Sherman
Meru Interactive
Meru Interactive