[Sidefx-houdini-list] Simple VEX Question

Jordan Walsh jordan.h.walsh at gmail.com
Fri Jul 14 05:49:58 EDT 2017


Yeah, if you use @opinput2_ syntax it expects there to be matching point
pairs for all the inputs. So it loops over the first point, and finds the
first point in input 2 but then on the second point it dosent find a second
point in input2 so you get an unexpected result.

Jordan

On 14 July 2017 at 06:47, Nick Deboar <nick.deboar at gmail.com> wrote:

> Hey,
>
> Try something like:
> v at sphereP = point(0,"P", at ptnum);
> v at pointP = point(1,"P",0);
> f at test = distance(@sphereP, @pointP);
> @P = @P * @test;
>
> Ta,
>
> Nick
>
> Nick Deboar
> ------------------------------
> www.nickdeboar.com
> m +61 435887248
>
> On Fri, Jul 14, 2017 at 1:00 PM, Floyd Gillis <floyd at afcg.com> wrote:
>
> > Hello All,
> >
> > Still muddling my way through VEX.
> >
> > As an example… I have an Attribute Wrangle with 3 inputs.
> > Input 1: some geometry
> > Input 2: a single animating point
> > Input 3: another single animating point
> >
> > If I have the following vex snippet… (the actual function is more
> complex.)
> > *
> > **/float test = 1.2;/**/
> > /**/@P = @P * test;/*
> >
> > All points will have their xyz values multiplied by “test”.
> >
> > But if I have…
> >
> > */float test = distance(@opinput1_P, @opinput2_P);/**/
> > /**/@P = @P * test;/*
> >
> > Only the first point will have it’s xyz values multiplied by “test”.
> >
> > Have tried various combinations of v@, @, etc.  Any help appreciated.
> >
> > Floyd
> >
> > _______________________________________________
> > 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