Gh-Player how to set up Get with preview

question

gh_player_toggle_00.gh (9.9 KB)

the attached definition is just a minimal demo with some fake logic / geometry generation.
I am interessed in the 3rd step (“Get Boolean” when the definition is played.

-_grasshopperplayer "....gh_player_toggle_00.gh"

is there any possibility to set the Get Boolean to not finish the command, but preview the result ?

correct command behaviour - no output


gh_player_toggle_01.gh (9.4 KB)

setting at least (1) / at most (9999) in the Get Boolean context Menu i can get the behaviour i would love to see.
But I can not finish the input with pressing enter. (only after clicking 9999 times ;-D)
so there never be any result in the doc…

is this a bug ?
do I miss something ?

how to use the Get-Components to generate preview while the user is interacting. (the same question can be applied to Get Number and others…) ? is this possible ?
check rhino’s rectangle command.
_rectangle 0 100 345
while typing 3 4 5 you will see a preview…

( I know this can be done with a plugin and display conduit … but I would love to see a vanilla gh solution)

thanks

tom

@kike
looks like you are involved with the player - functionality.
may I ask you to have a look at this topic - or address it to the right person - thanks.

Hi @Tom_P,

Now Get Boolean will expose a ‘Toggle’ option if it has a default value.

To finish the ‘Orientation’ get you can enter a value with the keyboard, click on False, True or hit Enter to accept the default value in <>.

Now you also have the Undo option that allow you to go back to the previous get.


gh_player_toggle_02.gh (18.7 KB)

This will be available on 8.14.

To implement what you suggested on your second question I would wait to 9.x.

1 Like