cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Developer forum

Update A with custom parameter

jc4d
Advocate

Hello,

 

I have an object with a custom values for the width.

 

When I place the object, the value that shows in the toolbar is 1000 no matter what is the right width of the object. Therefore, my question is if it is possible to update that value in the toolbar to shoe the real width of the object?

jc4d_0-1654838449251.png

 

Paremeters:

VALUES "mod_width" range [0.3, 2.0] Step 1, 0.005

 

Master:

A = mod_width

But didn't work

Juan.

 

1 ACCEPTED SOLUTION

Solution
Barry Kelly
Moderator

Instead of using 'mod_width', you could just have used 'A'.

 

Or you now need to say...

 

A = mod_width

PARAMETERS A = A

 

The first line sets the value for 'A' that the scripts will use, but the second line sets the parameter that the user sees.

 

But that is not the end of it.

If the user now adjusts 'A', nothing will happen to the width - because you are not changing 'mod_width'.

You could ...

LOCK "A"

So the user can see 'A' but not change it.

 

That is why it is best to just use 'A' instead of 'mod_width'.

 

VALUES "A" range [0.3, 2.0] Step 1, 0.005

 

 Anywhere else in your scripts that uses 'mod_width', just change it to 'A'.

 

Barry.


One of the forum moderators.
Versions 6.5 to 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

View solution in original post

5 REPLIES 5

Solution
Barry Kelly
Moderator

Instead of using 'mod_width', you could just have used 'A'.

 

Or you now need to say...

 

A = mod_width

PARAMETERS A = A

 

The first line sets the value for 'A' that the scripts will use, but the second line sets the parameter that the user sees.

 

But that is not the end of it.

If the user now adjusts 'A', nothing will happen to the width - because you are not changing 'mod_width'.

You could ...

LOCK "A"

So the user can see 'A' but not change it.

 

That is why it is best to just use 'A' instead of 'mod_width'.

 

VALUES "A" range [0.3, 2.0] Step 1, 0.005

 

 Anywhere else in your scripts that uses 'mod_width', just change it to 'A'.

 

Barry.


One of the forum moderators.
Versions 6.5 to 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

Thank you, I don't know why I was "afraid" on using A... maybe is because what could happen if I have a dropdwon list of sizes?

 

Another question related, the same logic applies to ZZYZX?

 

Juan

Sure.

Use 'A' for the overall width.

'B' for the overall depth.

And 'ZZYZX' for the overall height.

 

They can all have a VALUE list if you want to choose pre-set sizes.

 

Barry.


One of the forum moderators.
Versions 6.5 to 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

Lingwisyer
Legend

Value lists also work with Hotspots which will allow you to change between presets without even entering any dialogue.

AC22-23 AUS 7000
Self-taught, bend it till it breaks.
Win10 | E5620 x 2 | 24GB | K2200 RIP PSU
Win10 | R5 2600 | 16GB | GTX1660

Interesting, I will take a look. Thanks

 

Juan

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!