Page 1 of 1
Post Custom Boolean Option
Posted: Fri Jun 11, 2021 11:32 am
by David_Lelen01
Hey Les, when defining a post custom option and setting it to a boolean, the popup box shows either 0 or 1, could it be customized or made to show True/Flase or Yes/No?
Re: Post Custom Boolean Option
Posted: Fri Jun 11, 2021 2:05 pm
by djreiswig
It should show a check like the custom tool options. I noticed this a while ago.
Re: Post Custom Boolean Option
Posted: Fri Jun 11, 2021 4:21 pm
by Les Newell
I'll look into it. Making it display true/false means some changes to the way custom values are handled, which may turn into a bit of a rabbit hole.
Re: Post Custom Boolean Option
Posted: Fri Jun 11, 2021 4:45 pm
by djreiswig
The tool and operation custom settings with boolean values show as check boxes, only the custom post option doesn't if you set it as boolean.
Re: Post Custom Boolean Option
Posted: Wed Jun 23, 2021 3:30 pm
by David_Lelen01
Yeah, a check box even would be fine too.
Re: Post Custom Boolean Option
Posted: Sun May 01, 2022 8:01 pm
by djreiswig
I noticed that the boolean options in the custom post still show as 0 or 1 and not a checkbox in the latest versions. Guessing this slipped through the cracks.
Re: Post Custom Boolean Option
Posted: Mon May 02, 2022 1:56 pm
by Les Newell
I'll add it back into the to-do list
Re: Post Custom Boolean Option
Posted: Tue Jul 26, 2022 11:45 am
by Les Newell
Sorry for the delay. I'm now pushing for an update but I can't replicate this one. Booleans show as check boxes in V7.0.19 and V7.1.22.
As a test I added this code to a post:
Code: Select all
post.DefineCustomToolParam("PlasmaTool", "test", "test", sc.unitBOOLEAN, 0,0,1)
Plasma tools get an extra parameter called 'test' that is a check box.
Re: Post Custom Boolean Option
Posted: Tue Jul 26, 2022 2:14 pm
by djreiswig
It's not the tool parameters, it's the post options. The popup that appears from the button in the post selection window.
Re: Post Custom Boolean Option
Posted: Tue Jul 26, 2022 2:19 pm
by Les Newell
Perhaps I should have actually read the whole thread rather than just the last few posts
I'll take a look at it.
Re: Post Custom Boolean Option
Posted: Tue Dec 19, 2023 3:45 am
by djreiswig
Was this ever fixed?