Re: How to Refresh a combo list in a Custom Primitive PPG

2013-12-02 Thread Guillaume Laforge
I meant : I still don't know how to call a refresh on the PPG of a custom PRIMITIVE :) On Mon, Dec 2, 2013 at 10:29 AM, Guillaume Laforge guillaume.laforge...@gmail.com wrote: So I just took a look and realized I did already check this event ID. In the case of the 2014 new SDK feature Custom

Re: How to Refresh a combo list in a Custom Primitive PPG

2013-11-30 Thread Guillaume Laforge
Hi Ahmidou :) Yeah it would be the way to go, but as I was saying in pevious mail there is no such event for custom primitives. On Nov 30, 2013 1:32 AM, Ahmidou Lyazidi ahmidou@gmail.com wrote: Hey Guillaume, did you tried the siOnInit EventID?

Re: How to Refresh a combo list in a Custom Primitive PPG

2013-11-30 Thread Ahmidou Lyazidi
I haven't tried this one in particulary (only siParameterChange that is working), but it is used in the Box primitive example --- Ahmidou Lyazidi Director | TD | CG artist http://vimeo.com/ahmidou/videos http://www.cappuccino-films.com 2013/12/1

Re: How to Refresh a combo list in a Custom Primitive PPG

2013-11-29 Thread Ahmidou Lyazidi
Hey Guillaume, did you tried the siOnInit EventID? --- Ahmidou Lyazidi Director | TD | CG artist http://vimeo.com/ahmidou/videos http://www.cappuccino-films.com 2013/11/28 Stephen Blair stephenrbl...@gmail.com Oh yeah, I didn't see the custom

How to Refresh a combo list in a Custom Primitive PPG

2013-11-27 Thread Guillaume Laforge
Hi, I've got a custom primitive with a drop down list enumerator defined in its DefineLayout callback. I need to rebuild the UI Items array before inspecting the custom primitive as it is dynamic. The only working way for now is by right clicking the PPG name and pick Refresh. I added a button

Re: How to Refresh a combo list in a Custom Primitive PPG

2013-11-27 Thread Stephen Blair
That should work. That's how they do it in the PSetUIDemo\cppsrc\PSetUIDemoCPP.cpp //Redraw the PPG to show the new combo items ctx.PutAttribute(LRefresh,true); Maybe you need the L prefix? On Wed, Nov 27, 2013 at 2:17 PM, Guillaume Laforge guillaume.laforge...@gmail.com wrote: Hi, I've

Re: How to Refresh a combo list in a Custom Primitive PPG

2013-11-27 Thread Guillaume Laforge
Thanks for the help Stephen, but it doesn't work even using wide character (and even without using the L prefix, I guess it would be cast to wide by the CString constructor). I think the problem is that the Refresh is working for the PPG layout but not to update the internal combo list array.

Re: How to Refresh a combo list in a Custom Primitive PPG

2013-11-27 Thread Stephen Blair
Oh yeah, I didn't see the custom primitive part, sorry. For regular custom properties, you can do it in an OnInit or even an OnClicked, at least in scripting. On Wed, Nov 27, 2013 at 4:10 PM, Guillaume Laforge guillaume.laforge...@gmail.com wrote: Thanks for the help Stephen, but it doesn't