[Sidefx-houdini-list] Vex question for debutant : vector pos[];

Gregory Ecker gregory.ecker at gmail.com
Tue Dec 29 10:21:18 EST 2015


 almost.  For the "opinput" parameter use "@OpInput1" which is a constant
which evalaute to 0,  not 1.  (this might seem confusing,  "@OpInput1"
means the first input,  but the inputs are numbered starting from 0.  So
you can use either the constant @OpInput1 or just a 0.

 -G

On Tue, Dec 29, 2015 at 5:26 AM, Olivier Jeannel <facialdeluxe at gmail.com>
wrote:

> A big thank you !
>
> If I understand :
>
> vector pos[];
> //Build an *empty array* of vector called "pos"
>
> int pts[] = primpoints(1,0);
> //Using a primpoint function : Build a per point Index array (called "pts")
> from the primitive  connected to OpInput1 and which is the primitive N°0.
>
> for (int i=0 ; i<3 ; i++)
> {
> pos [i] = point(1,"P",pts[i]));
> }
> //Using a point function (Opinput 1, variable "P", index i [0,1,2,3]
> )Returns the PointPosition pos [index0], PointPosition pos
> [index1], PointPosition pos [index2], PointPosition pos [index3]
>
> Am I correct ?
>
>
>
>
> On Mon, Dec 28, 2015 at 7:18 PM, Sam Swift-Glasman <glassman3d at gmail.com>
> wrote:
>
> > The [ ] represents an array. In the first case
> >
> > vector pos[];
> >
> > Creates an empty array of type vector
> >
> > The second case
> >
> > int pts[] = primpoints(1,0);
> >
> > Creates an array of type integer and initialises it to the output of the
> > function
> > primpoints(1,0);
> > Hello list,
> > I'm on vacation spending my free time (ie, when children are away)
> watching
> > some Houdini tutorials.
> > I'm doing some early steps VEX, watching that passionating Tutorial that
> > happens to be in russian... https://vimeo.com/149419641
> > at 17' the "teacher" is writing this :
> >
> > vector pos[];
> > int pts[] = primpoints(1,0);
> >
> > I can't find with google or the VEX help files what does the [ ] stands
> > for.
> >
> > Can someone briefly explain or direct me to the correct help or even a
> > tutorial ?
> >
> > BTW any good VEX tuts for starter is welcome ;)
> >
> > Thank you and Merry Christmas !
> > _______________________________________________
> > Sidefx-houdini-list mailing list
> > Sidefx-houdini-list at sidefx.com
> > https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
> > _______________________________________________
> > Sidefx-houdini-list mailing list
> > Sidefx-houdini-list at sidefx.com
> > https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
> >
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>



More information about the Sidefx-houdini-list mailing list