When using showCustomOnly
, the parameter page header is no longer visible.
In previous versions (such as 2021.10330), the page tabs for custom pages would still be visible.
Is there some other new setting to control that, or is it a bug?
Canāt reproduce this here, Custom Tabs are showing up in Parameter COMP. Can you show your settings or a file? What are you referring to with showCustomOnly?
Steps to reproduce:
- Create a Base COMP
- Open Customize Component
- Add a parameter page āPage 1ā
- Add a parameter āFooā in that page
- Add another page āPage 2ā
- Add a parameter āBarā in that page
- Create a text DAT with this script:
op('base1').showCustomOnly=True
- Right click and run the script
- Select the base COMP
page page bug.toe (3.4 KB)
Looks like the Parameter COMP will show them correctly, but not the network editor.
Ok thanks, can reproduce now.
Possibly related:
The behavior of the pageindex
parameter seems to be handled inconsistently between the network editor parameter dialog and the parameter COMP if the āBuilt-Inā toggle on the parameter COMP is switched off.
If you have a parameter COMP that has that setting switched off, and use it to select the second custom page, pageindex
gets set to 1. But if you have āBuilt-Inā switched on and select the second custom page, it will set pageindex
to len(o.pages) + 1
.
@tekt We just retested this issue in the latest official 2021.16410 and it is no longer reproducible. Do you still have this problem on your end?
We still have to address the āpossibly relatedā one.
Possibly related:
The behavior of thepageindex
parameter seems to be handled inconsistently between the network editor parameter dialog and the parameter COMP if the āBuilt-Inā toggle on the parameter COMP is switched off.
If you have a parameter COMP that has that setting switched off, and use it to select the second custom page,pageindex
gets set to 1. But if you have āBuilt-Inā switched on and select the second custom page, it will setpageindex
tolen(o.pages) + 1
.
So in both cases pageindex will equal 1 whenever the second visible page is selected, whether that page is custom or built-in.
Are you instead expecting pageindex to be based on the full list of available pages so that itās always constant?
For example hitting the first page could result in a value of 5?
Thanks for the clarification,
Rob.
I havenāt been able to reproduce this myself recently, but Iāve gotten bug reports about it from one or two RayTK users. Iāll try to get some details from them.
We have now changed this in our upcoming experimental build, so that pageindex will have the same value regardless of which pages are currently displayed or not.
Similary, weāve added a new OP member: .currentPage which can be used to get or set the current page, even as a string.
Example: n.currentPage = āAboutā
Awesome. Thanks!
Thatāll be easier than scanning through the pages and calculating indices.