Re: Plugin cached?

2015-12-11 Thread Dan Yargici
Thank you Stephen. Martin had helped me resolve this off-list and I was about to post the solution. That was indeed the issue. Ended up like this: def DY_propTest_DefineLayout( in_ctxt ): return True def DY_propTest_ComboMode_OnChanged(): oProp = PPG.Inspected[0] oLayou

Re: Plugin cached?

2015-12-11 Thread Stephen Blair
The PPG object is available in callbacks like OnClicked. Like the doc says: This object can be manipulated within the event handling script code associated with a PPGLayout. So, not in DefineLayout. In DefineLayout, you should get the PPGLayout object and pass that to your rebuild function. On

Re: Plugin cached?

2015-12-11 Thread Martin Chatterjee
Hey Dan, hope you're well! Well, I usually get the handle on both the Property itself and the Layout and then pass those to my method: *oProp = PPG.Inspected[0]* *oLayout = PPG.PPGLayout* *buildPPGLayout(oProp, oLayout)* The other thing I noticed is that your itemsComboArray initialisation has

Re: Plugin cached?

2015-12-11 Thread Dan Yargici
OK, I'll admit I'm little wet behind the ears when it comes to this sort of thing. Could someone explain why I get a "# NameError: global name 'PPG' is not defined" error with this test property. http://pastebin.com/Z0YYSVbs Many thanks, DAN On Fri, Dec 11, 2015 at 12:14 AM, Stephen Blair wr

Re: Plugin cached?

2015-12-10 Thread Stephen Blair
Plugins are cached (right click one in the Plugin Manager). And there's a cache of PPG layouts. Never had the global PPG not defined problem. On Thu, Dec 10, 2015 at 4:54 PM, Dan Yargici wrote: > I have been tearing my hear out for hours now while working with a plugin > not knowing if I'm see

Plugin cached?

2015-12-10 Thread Dan Yargici
I have been tearing my hear out for hours now while working with a plugin not knowing if I'm seeing the updates I've been making. It's total voodoo. Sometimes when I reload, all is well, sometimes I'll break something on purpose to be certain that it's reloading/updating correctly only to find th