Jump to content

Modify numeric variable value with some knob


Recommended Posts

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?

 

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...