[Sidefx-houdini-list] Simple VEX Question

Nick Deboar nick.deboar at gmail.com
Fri Jul 14 01:47:30 EDT 2017


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
>



More information about the Sidefx-houdini-list mailing list