Re: Questions about PPGs

2018-07-21 Thread Martin Yara
Ok I solved all my problems so I'm just here to report how I did it, just
in case someone may still working in this EOL software like me.

- PPG is not defined (when calling it from an outsider function)
I solved this by creating a Global Variable of the Property with SetGlobal,
and getting it with GetGlobal when I'm in an outside function.

- Change minimum value of a Parameter
I think it's not possible, so I created 2 parameters and used
parameter.show(False) in my OnInit to hide one.
Then switch the show value with a PPG event. It looks that the slider
settings have changed, but in fact they are different sliders.
A little more complicated than what I wanted, but it works.

- Event to trigger after I change the value of a parameter.
Well, this was specific to my slider parameter, so it was doable with the
Event Scrubbing.
I couldn't find any way to create a Mouse Event, so my idea of getting the
value when the click ended was useless, but the Scrubbing worked.
I had some problems with the undo and the PPG Event so I dropped this
feature.

- Grid Color Cell
This one was tricky for me, the Grid Color cell seemed to accept only a
number or string as a color definition so I expected a hex value or
something.
After reading a Unity article, I decided to try something similar to the
Unity approach and it worked. It turned out to be like this:

R | G << 8 | B <<16 | A <<24

Since VColors are floatings from 0 to 1 you would have to convert it to
integers from 0 to 255:

R = int(round(R*255))
and so on.

Now my custom V Color Editor is almost finished, it changes the grid colors
in real time and it feels as fast as Softimage 2013 so it seems that we may
be able to work in Softimage 2015 now.

Cheers,

Martin


On Thu, Jul 19, 2018 at 8:42 PM, Jonathan Moore 
wrote:

> Raphael's course isn't available anywhere unfortunately. I even went so
> far as to send CGSociety a mail and their attitude could be summed up by
> 'Soft is dead, so we're unwilling to sell the course material &
> recordings'. Not great, especially seeing as I've had a number of people
> recommend it to me over the years.
>
> If Raphael is willing, it's the sort of thing that would be great to have
> over on si-community.com
> 
>
> On Thu, 19 Jul 2018 at 10:04, Martin Yara  wrote:
>
>> 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  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,  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 somethi

Re: Questions about PPGs

2018-07-19 Thread Jonathan Moore
Raphael's course isn't available anywhere unfortunately. I even went so far
as to send CGSociety a mail and their attitude could be summed up by 'Soft
is dead, so we're unwilling to sell the course material & recordings'. Not
great, especially seeing as I've had a number of people recommend it to me
over the years.

If Raphael is willing, it's the sort of thing that would be great to have
over on si-community.com

On Thu, 19 Jul 2018 at 10:04, Martin Yara  wrote:

> 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  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,  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 softimage-requ...@listproc.autodesk.com
>>> with "unsubscribe" in the subject, and reply to confirm.
>>
>>
>> --
>> Softimage Mailing List.
>> To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com
>> with "unsubscribe" in the subject, and reply to confirm.
>>
>
> --
> Softimage Mailing List.
> To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com
> with "unsubscribe" in the subject, and reply to confirm.
--
Softimage Mailing List.
To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com with 
"unsubscribe" in the subject, and reply to confirm.

Re: Questions about PPGs

2018-07-19 Thread Martin Yara
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  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,  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 softimage-requ...@listproc.autodesk.com
>> with "unsubscribe" in the subject, and reply to confirm.
>
>
> --
> Softimage Mailing List.
> To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com
> with "unsubscribe" in the subject, and reply to confirm.
>
--
Softimage Mailing List.
To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com with 
"unsubscribe" in the subject, and reply to confirm.

Re: Questions about PPGs

2018-07-19 Thread kenny wood
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,  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 softimage-requ...@listproc.autodesk.com
> with "unsubscribe" in the subject, and reply to confirm.
--
Softimage Mailing List.
To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com with 
"unsubscribe" in the subject, and reply to confirm.

Questions about PPGs

2018-07-19 Thread Martin Yara
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 softimage-requ...@listproc.autodesk.com with 
"unsubscribe" in the subject, and reply to confirm.