By default, the wizard generates LogMessages that in verbose mode...do you
have "Log Verbose Messages" enabled (in the Scripting preferences) ?

On Wed, Sep 5, 2012 at 2:42 AM, Szabolcs Matefy <szabol...@crytek.com>wrote:

> Hey Stephen, nice to have you here J****
>
> ** **
>
> Meanwhile I resolved the issue, now it works. However, I have a slider,
> and it seems that the OnChanged callback is not working on this item…I
> made this self installing property with the Wizard, and it looks like that
> the function is not running…even the logmessages are not displaying…****
>
> ** **
>
> ** **
>
> Cheers****
>
> ** **
>
>
> Szabolcs****
>
> ** **
>
> ** **
>
> *From:* softimage-boun...@listproc.autodesk.com [mailto:
> softimage-boun...@listproc.autodesk.com] *On Behalf Of *Stephen Blair
> *Sent:* Wednesday, September 05, 2012 12:05 AM
> *To:* softimage@listproc.autodesk.com
> *Subject:* Re: Quick scripting question about griddata****
>
> ** **
>
> Hi Szabolcs
> I stuck your code into the OnClicked event for a button, and it worked.
> (my ppg was a self-installing property with a griddata and a button)
>
>
> ****
>
> On Tue, Sep 4, 2012 at 8:07 AM, Chris Chia <chris.c...@autodesk.com>
> wrote:****
>
> Try setting the size RowCount and ColumnCount if you do not have a
> complete array.
>
> this code snipplet works for me :
> dim a_poly(4,10)
> a_poly(0,0) = 1
> a_poly(0,1) = 10
> set oGridData = XSIFactory.CreateGridData
> oGridData.Data = a_poly
> dim i
> for i = 0 to oGridData.RowCount - 1
>     logmessage oGridData.GetCell( 0, i ) & vbTab & vbTab & vbTab & _
>         oGridData.GetCell( 1, i )
> next
>
>
> I do realise that there is some strange behaviour when you use redim.
> If you know the size of the array needed, try to fix it.
>
>
> Chris
> ________________________________
> From: softimage-boun...@listproc.autodesk.com [
> softimage-boun...@listproc.autodesk.com] on behalf of Szabolcs Matefy [
> szabol...@crytek.com]
> Sent: Tuesday, September 04, 2012 6:56 PM****
>
> To: softimage@listproc.autodesk.com
> Subject: RE: Quick scripting question about griddata****
>
> The script is to create a selection based upon the polygons relative size
> (used the sum of the length of bordering edges). I wanted to fill the grid
> data with the array, as it is suggested in the help.
>
>                 ActivateObjectSelTool
>                 p=selection(0).Activeprimitive.geometry.polygons.count
>
>                 redim a_poly(2, 1)
>                 cc=0
>                 for each p_polys in
> selection(0).Activeprimitive.geometry.polygons
>                                 c_Poly = 0
>                                 for each p_edge in p_polys.edges
>                                                 set
> a=p_edge.points(0).position
>                                                 set
> b=p_edge.points(1).position
>                                                 set c=XSIMAth.CreateVector3
>                                                 c.Sub a, b
>                                                 c_poly = c_poly +
> abs(c.length)
>                                 next
>
>                                 a_poly(0, cc) = p_polys.index
>                                 a_poly(1, cc) = c_poly
>                                 redim preserve a_poly(2, cc+1)
>                                 cc=cc+1
>                 next
>
>                 redim preserve a_poly(2, cc)****
>
>                 PPG.Circums.Value.Data = a_poly <-- this cause the error
> message****
>
>
> From: softimage-boun...@listproc.autodesk.com [mailto:
> softimage-boun...@listproc.autodesk.com] On Behalf Of Chris Chia
> Sent: Tuesday, September 04, 2012 10:57 AM
> To: softimage@listproc.autodesk.com
> Subject: RE: Quick scripting question about griddata
>
> Providing a sample of your script which you encountered the error would
> truly help… rather than telling everyone here that it is not working.
> Not knowing which part of your script went wrong, I can only refer you to:
> http://download.autodesk.com/global/docs/softimage2013/en_us/sdkguide/files/cus_ppg_GridDataWidget.htm
>
> Chris****
>
> From: softimage-boun...@listproc.autodesk.com<mailto:
> softimage-boun...@listproc.autodesk.com> [mailto:
> softimage-boun...@listproc.autodesk.com]<mailto:[mailto:
> softimage-boun...@listproc.autodesk.com]> On Behalf Of Szabolcs Matefy****
>
> Sent: Tuesday, September 04, 2012 4:44 PM****
>
> To: softimage@listproc.autodesk.com<mailto:softimage@listproc.autodesk.com
> >****
>
> Subject: RE: Quick scripting question about griddata
>
> OK, that is resolved…but for some reason I can’t fill the grid with my
> array (2D)…it says, invalid argument specified
>
> Cheers
>
>
> Szabolcs
>
>
> ****
>
> From: softimage-boun...@listproc.autodesk.com<mailto:
> softimage-boun...@listproc.autodesk.com> [mailto:
> softimage-boun...@listproc.autodesk.com]<mailto:[mailto:
> softimage-boun...@listproc.autodesk.com]> On Behalf Of Szabolcs Matefy****
>
> Sent: Tuesday, September 04, 2012 10:16 AM****
>
> To: softimage@listproc.autodesk.com<mailto:softimage@listproc.autodesk.com
> >****
>
> Subject: Quick scripting question about griddata
>
> Hey there
>
> I’d like to store some data in a custom property GridData to save with the
> scene, but I also want to hide it from the user. How can I access griddata
> in the custom property’s code?
>
> Cheers
>
>
> Szabolcs
> ___
> This message contains confidential information and is intended only for
> the individual named. If you are not the named addressee you should not
> disseminate, distribute or copy this e-mail. Please notify the sender
> immediately by e-mail if you have received this e-mail by mistake and
> delete this e-mail from your system. E-mail transmission cannot be
> guaranteed to be secure or error-free as information could be intercepted,
> corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.
> The sender therefore does not accept liability for any errors or omissions
> in the contents of this message, which arise as a result of e-mail
> transmission. If verification is required please request a hard-copy
> version. Crytek GmbH - http://www.crytek.com - Grüneburgweg 16-18, 60322
> Frankfurt - HRB77322 Amtsgericht Frankfurt a. Main- UST IdentNr.:
> DE20432461 - Geschaeftsfuehrer: Avni Yerli, Cevat Yerli, Faruk Yerli****
>
> ** **
>

Reply via email to