- This topic has 8 replies, 3 voices, and was last updated 2 weeks, 4 days ago by
NaxosCG.
-
AuthorPosts
-
2026-03-11 at 7:12 pm #86505
NaxosCGCustomerHellto there !
I’m working on a new project where i’ll have to append scenes containing letters.
So, for ex, when i press ‘A’, it appends “A100.gltf.xz” to the scene, then move it regarless of the number of letters.
It works, but if i am too fast typing letters, the move / offset is not fast enough and letters are no longer beside to each other, but at the same place…
A solution i would like to test is to decativate keyboard while append + move, then activate it back.
Is that possible ?"1+1=3... for large values of 1"
2026-03-12 at 12:29 am #86506
xeonCustomersounds like you could just use a variable. Lets call it “movedone”… it would by default be true and false if the move action is taking place.
Your on event key down listner would have logic. If “movedone” is true… then next key
If “movedone” is false…then ignore keyboard input.The down side to this is that someone typing fast will have to wait for the move to be done…so you may want a visual indicator of some type to alert the user input can be done.
Otherwise you may want to create a key capture lost..and then execute the key strokes based on the key list after each “movedone”.
Xeon
Route 66 Digital
Interactive Solutions - https://www.r66d.com
Tutorials - https://www.xeons3dlab.com2026-03-12 at 11:06 am #86523
NaxosCGCustomerThank you, i’ve done that, and it works…
If the user wants to type too fast, he will have to slow down
"1+1=3... for large values of 1"
2026-03-17 at 11:39 am #86620
visualizerCustomerCan you share a screenshot of working this “movedone” thing?
Where we get that Ignore keyboard input puzzle?
-
This reply was modified 3 weeks, 3 days ago by
visualizer.
2026-03-17 at 2:01 pm #86624
NaxosCGCustomerI’ve set a “IsAppending” variable set to false, then set to true when appending scene and stuff, then back to false at the end.
And the keyboard event has an “if IsAppending false” before doing anything
"1+1=3... for large values of 1"
2026-03-21 at 5:44 am #86721
visualizerCustomerOh ok
I will try it2026-03-21 at 10:35 am #86728
NaxosCGCustomerOh ok
I will try itSorry, i can’t really share screenshot as it is spread around multiple puzzles, but quite simple in fact
"1+1=3... for large values of 1"
2026-03-23 at 3:49 am #86731
xeonCustomerHere is an example around a key control using a flag variable.
demo – https://v3d.net/1eh2
project zip file: https://v3d.net/1eh2Press the 7 key or 8 key. Hold 7 for 2 seconds and let go… hold 8 key for 2 second and let go and notice the difference in playback. The variable is controlling the state of the animation based on key press and hold time.
Xeon
Route 66 Digital
Interactive Solutions - https://www.r66d.com
Tutorials - https://www.xeons3dlab.com2026-03-23 at 2:38 pm #86733
NaxosCGCustomerMany thanks !
"1+1=3... for large values of 1"
-
This reply was modified 3 weeks, 3 days ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
