Set default value for pin collector pin

 

I have for example the following control dashboard setup

 And I need to set "3" as default value when users reopen the project,so always the project reset this pin collector to "3"?

How to do such a thing?

   ahmed ahmed

 
Profile Image
ahmed ahmed
  -  

Any tips for doing such a thing?

Also did new Set * Pin modules help in this case?

if yes, how to use it?

 
Profile Image
Aximmetry
  -  

Hi Ahmed,
Yes, with some hacking you can use a Set Pin module for that.
Add a Set Integer Pin beside your pin collector.

In order to set the pin you have the specify the exact module name and pin description of the collector:

Set Value to the desired initial value.

Now you want to trigger the Set Pin module exactly once when the scene starts.
It can be done using a Timer with a small End Time,  for e.g. 0.1 seconds.
It also have to be put in Play state.

 

 

 
Profile Image
ahmed ahmed
  -  

this solution work but any plans to simplify the process ?

And If we have pin collector with multi input how we can set these input to defaults ?

 
Profile Image
Aximmetry
  -  

Hi Ahmed,

For multiple inputs you simply have to connect multiple Set XXXX Pin modules the Timer and specify the correct pin name for each of them.

Currently the only method that is simpler than this is paying attention that the values are all in the desired position whenever you save the scene.