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 <[email protected]> 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 > <https://urldefense.proofpoint.com/v2/url?u=https-3A__u7507473.ct.sendgrid.net_wf_click-3Fupn-3D5SmYwFIJXHmC5X9wAP0G6mg4oLGBuQENbeDkYXezg3m6vjHxJcC6rUMd8QE2MtqzZlUeTlN9JmDfeOY6mvCXf-2D2FOuDhDUdYMRAbCsvNwkR8PdTpbjcxHtoxK50W2zPqm6pw3-2D2FXAcPaV-2D2Bv8gDNyAdiG3JlFWR-2D2BmA67uulvzWqpJSHwZDgp6udHsVXhxkgLIAFeV-2D2F-2D2FYLPHr2VNO6Fj5i-2D2F8PAD79v5OEG00VR9K72zHw6D6zOVyrz2E7UMvntjKuE-2D2B2ex2xl6cHAUnOb0PmgUnDaKZ-2D2FqzgTUqVWDnK1bua9o-2D2B0Uk6NTqK8H2rvfAm6WDRar70HxDf9oyIB5hSbDSG7SalIMsCZ-2D2Bpb-2D2BKsAmsu-2D2Bqa-2D2BRbZ-2D2FGYr1jwC0DD4LRxYuTayO-5FhRVZ0H1Mohp6PnbdsfG9V7fsaeUd8Pp-2D2FKspk8e2EVserXEL2yNKhqlma5H8Q9lPWvhujO5jra8i37jpDIrAIuslL-2D2BvLO04SWeT226DRw8a4v9KiUKJpzNmrComdvzwNAfVratsnZAx5XO56uzkt3unUKkJdzrlMFfpa1wbbDacRBM2KPX49Gfg7A6Ad1Jk-2D2BQ7yVcpi1BdgZASBeG7x06zSoFF3vFMY-2D2FZnfqIIyV-2D2FlN8-2D3D&d=DwIFaQ&c=76Q6Tcqc-t2x0ciWn7KFdCiqt6IQ7a_IF9uzNzd_2pA&r=GmX_32eCLYPFLJ529RohsPjjNVwo9P0jVMsrMw7PFsA&m=h_iPZaPKRh7U9GjFwAJzcxUGSrsS1Zr1QRu8jzmlA2s&s=lfwx3I1--LGEmRpJzFXFweCp9HWfelaIu6fK4u37bWU&e=> > > On Thu, 19 Jul 2018 at 10:04, Martin Yara <[email protected]> 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 <[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. > > > ------ > 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.

