How to add Scripted Plugin Rollout's to subrollout

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 11 November 2012   #1
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
 
Old 11 November 2012   #2
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)
__________________
Paul Neale
http://paulneale.com
 
Old 11 November 2012   #3
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
 
Old 11 November 2012   #4
Quote: 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.
 
Old 11 November 2012   #5
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 12:45 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.