Pretty simple, I’d like to be able to tell ShowContentChooser to show only certain types of content.
I suppose the simplest form of this would be to accept a single category name and preset that in the dialog. More powerful would be to provide overloads accepting a list of categories, and a list of content type IDs.
johnc
(John Croudy)
May 7, 2020, 6:35pm
2
Hi @jdhill ,
We should be able to add this to Rhino 7. I have filed a bug to make sure it gets done.
https://mcneel.myjetbrains.com/youtrack/issue/RH-58381
Regards,
John
johnc
(John Croudy)
April 7, 2021, 12:51am
4
Hi @jdhill ,
This is now done and will be available in Rhino 7.6. Sorry it took so long!
There is a new version of ShowContentChooser which allows you to:
Preset a single category name in the drop-down list.
Specify a list of categories to display. No other categories are displayed.
Specify a list of content type IDs to display. No other types are displayed.
If these items are empty string/arrays, then the function assumes the old behavior.
There is example code here: https://mcneel.myjetbrains.com/youtrack/issue/RH-58381
Regards,
John
1 Like
jdhill
April 7, 2021, 1:51am
5
That sounds great, thanks!
johnc
(John Croudy)
May 28, 2021, 8:08pm
6
Hi @jdhill ,
Have you had a chance to test this yet? I’m wondering if it does what you need?
Regards,
John
I target v6 so had not yet written the reflection to make use of this, but I just did, and it seems to work perfectly – thanks again!
johnc
(John Croudy)
June 1, 2021, 11:05pm
8
@jdhill ,
Great! Thanks for the confirmation.
John