I haven't watched Raphael's course, btw is it available somewhere?
But I've solved my problem with the " PPG is not defined." by using a
Global Variable for my property before using it in a View.

Like this for creating a View with a property
Prop = XSIFactory.CreateObject("mVColor_Prop")
xsi.SetGlobal('mVColor_Prop', Prop)

and getting it again in a function outside
xsi.GetGlobal('mVColor_Prop')

So I can change the values of the properties like I would be doing it with
the variable PPG.

I still can't change the min value though.

Martin

On Thu, Jul 19, 2018 at 5:52 PM, kenny wood <[email protected]> wrote:

> There is a command to get a hook to the ppg but I can't remember what it
> was.
> It's clearly explained in Raphael fragapanes technical direction course.
>
> Kenny
>
>
>
> On Thu, 19 Jul 2018, 13:41 Martin Yara, <[email protected]> wrote:
>
>> I'm recreating a Weight Editor for Vertex Colors to get a faster version
>> of the crappy SI 2015 Weight Editor. I already did the grid and it's
>> pretty fast, like 3 seconds for the same model, almost like Softimage 2013
>> and with Python only.
>>
>> Now I'm having some problems with the PPG, so here are my questions,
>> hopefully someone can give me some hints to put me into the right direction:
>>
>> - PPG is not defined.
>> I'm trying to create a event that refresh my PPG eveytime the selection
>> changes, but I can't find a way to get my property. As expected, the global
>> variable PPG doesn't work inside this event.
>> How can I call my property from this event?
>>
>> - Change minimum value of a Parameter in an already defined Property.
>> I want to do something like the Weight Editor that changes the minimum
>> value from 0 to -1 when changing from Abs to Add.
>>
>> - Event to trigger after I change the value of a parameter
>> The Weight Editor slider seems to trigger a command after I stopped
>> moving it. I'd like to replicate that but it seems impossible. Is it ?
>> In the PPG events I have "changed" but it triggers while I'm sliding the
>> bar, not when I finished, increasing a lot the Undo list.
>>
>> - Grid Color cell
>> I'm still lost about the grid color. It seems that it wants one "number"
>> or something. I tried different combinations like RGB888 and RGB555 but it
>> stills give me a different color.
>>
>> Thanks
>>
>> Martin
>>
>>
>> ------
>> Softimage Mailing List.
>> To unsubscribe, send a mail to [email protected]
>> with "unsubscribe" in the subject, and reply to confirm.
>
>
> ------
> Softimage Mailing List.
> To unsubscribe, send a mail to [email protected]
> with "unsubscribe" in the subject, and reply to confirm.
>
------
Softimage Mailing List.
To unsubscribe, send a mail to [email protected] with 
"unsubscribe" in the subject, and reply to confirm.

Reply via email to