[Sidefx-houdini-list] lines from point positions

Ron Schab ron.schab at gmail.com
Thu Oct 6 05:14:18 EDT 2016


Hey Gary,

not having looked at your scene ....

I am assuming when you are trying to use pscale for "the weight of the
lines as they render" you are trying to set their width/thickness?

If so, try using f at width instead for lines :)

cheers
Ron



Ron Schab
-----------------------------------------------------------------------

http://www.ronthedon.com


On Thu, Oct 6, 2016 at 12:44 AM, Gary Jaeger <gary at corestudio.com> wrote:

> Thanks Neil. This works well, except I couldn’t get it working using
> Custom Discrete. Messing around I got it basically working using Uniform
> (Discrete) and fiddling with the random seed. Still seems to favor one of
> the colors, but that might be ok. I’d like to understand why though.
>
> In a similar vein, I’ve been trying to randomize the weight of the lines
> as they render. I put an Attribute Create at the end of the chain, and I
> can set a value there. Putting an Attribute Randomize after that with
> attribute name set to pscale doesn’t seem to do it. Is it because they’ve
> already been created?
>
> Ha, things are (slowly) sinking in…
>
> in case you’re curious the masterpiece is here https://www.dropbox.com/s/
> ra4walh9qqd99be/1676_FX2_v002.hip?dl=0
>
> Gary Jaeger / 650.728.7957 direct / 415.518.1419 mobile
> http://corestudio.com <http://corestudio.com/>
> > On Oct 5, 2016, at 10:41 AM, Neil Dickson <ndickson at sidefx.com> wrote:
> > For the picking from 3 colours randomly, a way to do it, though others
> > probably have better ways for specific situations, is to use Attribute
> > Randomize with Attribute Name set to colour_choice, Distribution set to
> > Custom Discrete, 3 values, set to 0, 1, and 2, (this just lets you easily
> > adjust the relative proportions of each colour), then in an Attribute
> > Wrangle:
> >
> > if (@colour_choice == 0) {
> >    @Cd = chv("colour0");
> > }
> > else if (@colour_choice == 1) {
> >    @Cd = chv("colour1");
> > }
> > else { // @colour_choice == 2
> >    @Cd = chv("colour2");
> > }
> >
> > You can press the "Create spare parameters..." button next to the
> > VEXpression to create the parameters for the colours and adjust those to
> > set the colours.  To have attributes, including Cd, copied from the
> > template points to the copies, turn on Use Template Point Attributes in
> the
> > Attribute tab of the Copy SOP.
> >
> > Cheers,
> > Neil
>
> _______________________________________________
> 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