Jump to content

Empfohlene Beiträge

Geschrieben

Hi guys,

 

Is there any way to read any knob's/regulator's value (the percentage shown as "Properties", as numeric it will be presumably as -1..1) - could be with a script. I have tried with eg.:

print($("Fahrregler").variables[0])  

but it's Nil. I'm afraid it's not exposed as object's property within the API, but maybe there is some trick?

 

Geschrieben

Hi @piatek.piotr

vor 49 Minuten schrieb piatek.piotr:

but it's Nil

First, the sub table "variables" only holds the object variables that you add to an object and never any of its properties.

Second, the position of such controller cannot (to my knowledge!) be accessed via the EV.

Greets
Goetz

 

Geschrieben

OK, that's what I was afraid of (I have tried with the "variables" simply because I couldnt find anything else). Is there any other 3d model exposing continous numerical property/value?

Geschrieben
vor 6 Stunden schrieb piatek.piotr:

Is there any other 3d model exposing continous numerical property/value?

The first that comes to mind is a motorised vehicle.
You can read the speed

Erstelle ein Benutzerkonto oder melde dich an, um zu kommentieren

Du musst ein Benutzerkonto besitzen, um einen Kommentar verfassen zu können

Benutzerkonto erstellen

Neues Benutzerkonto für unsere Community erstellen.

Neues Benutzerkonto erstellen

Anmelden

Du hast bereits ein Benutzerkonto? Melde dich hier an.

Jetzt anmelden
×
×
  • Neu erstellen...