Monday
I need to apply a different parameter to a mirrored and not mirrored skylight/roof window.
Is there any possibility? Otherwise I will have to hard-code the type and un-mirror the model.
SYMB_MIRRORED does not work in parameter script.
WIDO_ORIENTATION does not work in skylights - it works ok with wall doors and windows.
The inconsistency is mind-blowing.
Tuesday
It is SYMB_MIRRORED.
Are you sure it doesn't work?
I just used it in the Master Script as a text value and it worked fine.
Barry.
Tuesday - last edited Tuesday
My guess is that he is trying to change the parameters values the user sees when it is mirrored. So while it will impact the 2D and 3D script, it will not feed back into the parameters. As a work around, if Piotr scripts a UI, they could get it to display a completely seperate parameter when it is mirrored, unless SYMB_MIRROR also does not work in the UI Script.
Ling.
AC22-28 AUS 3110 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win11 | R5 2600 | 16GB | GTX1660 |
Tuesday
SYMB_MIRRORED works only in 2d/3d scripts.
yesterday
It does work in either the parameter or master script.
At least it does pass a value on to another parameter.
You just can't set the value of that parameter in the parameter list.
I am not quite sure why.
Barry.
yesterday - last edited yesterday
Barry, I cannot make it work, Yes it works if placed as an object, but not if placed as roof window.
I see You use AC 22 in the screenshot - so here goes a 22 version of modified file, maybe something stupid i did..
I added:
if SYMB_MIRRORED=1 then bMirrored=1 else bMirrored=0
if SYMB_MIRRORED=1 then sMirrored="mirrored" else sMirrored="not mirrored"
parameters bMirrored=bMirrored!: lock "bMirrored"
parameters sMirrored=sMirrored!: lock "sMirrored"
and bMirrored and sMirrored as parameters...
It seems I have to live with it and make a workaround with 2 different products L/R ones and then mirror / unmirror accordingly in the model 😞
works when placed as object, but not as window...what the heck?
8 hours ago
The object behaves correctly.
It is just that the parameters do not adjust in the parameter list when you open the object settings.
I don't know why this is.
I was using the skylight tool.
I just added .... text2 0,0, sMirrored ... in the 2D script of your object and you can see it does know when it is mirrored - it just doesn't show in the parameters.
Barry.