Notifications
Clear all

[Closed] How to add Scripted Plugin Rollout's to subrollout

Hello,

I have created a scripted plugin which has few rollouts in it, now i was searching for a way to display this rollouts in a rollout floater.

Currently the way i am doing this is i have created a local array variable say “X” in the plugin and then i am adding all the rollouts to this variable.

Then i am using this to add those rollouts to the subrollout in my rolloutfloater

for ro in X do addsubrollout rolloutXYZ ro

when i do this, the rollouts work fine for the first time, but when i remove them and add them again, then i get Unknown Exception Error display’s.

Can anyone guide me on this !!

Thanks

3 Replies
 PEN

What I have is at the end of the plugins I have a function called getRollouts that returns an array of the rollouts in plugin. You need to make sure that either the plugin UI is not open or you remove the rollouts first before trying to display them in a createDialog. A rollout can only have one instance of it open at a time.


fn getRollouts=#(rollout1,rollout2)

I have not tried the function’s method yet, but i will give it a try,

And also i am removing the Rollouts from the subrollout and then only i am adding them again, I have also made sure that the rollouts are not visible / open while it try to add them to my menu.

I will give it one more try, making sure of the things you mentioned.

Thanks

What I have is at the end of the plugins I have a function called getRollouts that returns an array of the rollouts in plugin.

Thanks a lot Paul, the function thing worked great.

But i don’t understand why didnt the storing in variable thing worked.

Thanks a lot again for the solution. :bounce: :applause: