Jump to content

Lookup in VOP spline ramp


loudsubs

Recommended Posts

I'm trying to create an effect with some boxes copied onto particles and scale the copies using the life attribute. The trick is, I want the scale of each box to start at zero, then grow to one about midway through the particle's life, then scale back down to zero before dying.

I was able to accomplish this using the color pop with a lookup of $LIFE, and then stamping $CR into the scale of each box being copied.

Purely for learning purposes, I'm trying to do the exact same thing in SOPS using a vopsop spline ramp to control the scale using the life attribute as a "lookup". Creating an attribute out of this and using the point ID, and then stamping it to each copy.

I'm really just trying to figure out how to make a lookup input for a spline ramp, similar to the color pop.

I've attached my hip file. The "first try" object shows what I'm trying to accomplish, the "2nd try" obj is where I'm stuck using vops.

Thanks in advance for any advice

pop_box.hipnc

Link to comment
Share on other sites

I'm trying to create an effect with some boxes copied onto particles and scale the copies using the life attribute. The trick is, I want the scale of each box to start at zero, then grow to one about midway through the particle's life, then scale back down to zero before dying.

I was able to accomplish this using the color pop with a lookup of $LIFE, and then stamping $CR into the scale of each box being copied.

Purely for learning purposes, I'm trying to do the exact same thing in SOPS using a vopsop spline ramp to control the scale using the life attribute as a "lookup". Creating an attribute out of this and using the point ID, and then stamping it to each copy.

I'm really just trying to figure out how to make a lookup input for a spline ramp, similar to the color pop.

I've attached my hip file. The "first try" object shows what I'm trying to accomplish, the "2nd try" obj is where I'm stuck using vops.

Thanks in advance for any advice

In SOP land you can divide Global Life by Age to get a value 0-1 over life.

Also, the copy-SOP will catch the attributes pscale, rot and orient so you dont have to stamp them.

http://www.sidefx.com/docs/houdini11.0/copy/instanceattrs

At the moment my son is in my knee watching Pingu so i really cant make you an example. :)

Edit: Late as always.

Edited by mawi
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...