Page 1 of 1

初始化测量

PostPosted: Wed Dec 02, 2020 9:25 am
by xqy
2.jpg
change the value of the slider


Need help please, How can I initialize the contents in the text box of the measurement module.

I have to modify it in the python source code.

I can only change the value of the slider

But I have to input the actual size, for example 39.00 cm.

Where can I add code to implement this function.

Re: 初始化测量

PostPosted: Wed Dec 02, 2020 5:18 pm
by loki1950
There is no mathematical relationship between the slider values and actual measurement the measurement is derived from the final mesh by calculation.

Enjoy the Choice :)

Re: 初始化测量

PostPosted: Thu Dec 03, 2020 1:34 am
by xqy
loki1950 wrote:There is no mathematical relationship between the slider values and actual measurement the measurement is derived from the final mesh by calculation.

Enjoy the Choice :)


but in the measurement part, if i input a value (38.00) and press enter, the text box and slider will change together.

in this case, The human model is changed by inputting a specific value ?

1234.jpg


12345.jpg

Re: 初始化测量

PostPosted: Thu Dec 03, 2020 4:36 am
by loki1950
If you fallow that code you will find that it just changes particular part of the mesh interpolating to the correct slider value and it is an iterative process not calculated more like solving a deferential equation by numerical methods ie; Euler's method or Runge-Kutta fist order.

Enjoy the Choice :)

Re: 初始化测量

PostPosted: Thu Dec 03, 2020 11:11 am
by xqy
loki1950 wrote:If you fallow that code you will find that it just changes particular part of the mesh interpolating to the correct slider value and it is an iterative process not calculated more like solving a deferential equation by numerical methods ie; Euler's method or Runge-Kutta fist order.

Enjoy the Choice :)


another question, I want to know what the maximum value of the slider is, and why it keeps changing when i move other sliders?

and where is my output when i use print( ), it is not in the console...

(my English is poor, Maybe I can't express my ideas clearly)

Re: 初始化测量

PostPosted: Thu Dec 03, 2020 4:52 pm
by loki1950
The slider values are between 0 and 1 only basically no influence/full influence.The values of the various sliders are interdependent so yes changing one may force a change in an other related target(what the sliders actually control) which ones that influence depends on how close they are to each other on the mesh.As for where your print() output will be that is really controlled by which OS you are running Python on and how you have set up the Environment variables not sure in detail as I am not the much of a coder these days though I wrote my first code back in the 60's yeah been around that long ;)

Enjoy the Choice :)