VEX question

   1803   5   1
User Avatar
Member
5 posts
Joined: Jan. 2017
Offline
Quick VEX question.

I am following along in a tutorial on particles and I got to a point where you type in an attributeWrangle:

float speed = length(@v);
@test = speed;

The instructor then looks at the spreadsheet and sure enough there is a ‘test’ attribute that shows the changing speeds of the particles. I have the attribute ‘test’ as well but all my values are 0 as the animation plays.
I have double and triple checked and cant figure out what is going wrong.

Everything in the sim works perfectly up to this point and is spot on with the instructor sim.

Any ideas of what I am doing wrong?

Attachments:
VelocityFields_pyroRobbery_fireball.hip (1.0 MB)

User Avatar
Member
5 posts
Joined: Jan. 2017
Offline
Actually, none of my velocities are coming through on the spreadsheet. I have definitely messed something up. ;-)
User Avatar
Member
2036 posts
Joined: Sept. 2015
Offline
Yeah…I was just going to say that…I don't know my way around using solvers/popnets etc.

So unless someone has a look, your best bet is to follow through the tut again - probably just one mistep on the follow along.
User Avatar
Member
2036 posts
Joined: Sept. 2015
Offline
In your popnet…in the source_first_input_node…under the attributes tab,

there's 3 options from the pull down for initial velocity.

You have it set to the first choice,

If you set it to one of the other two, you start getting values.

I suspect the tut needed you to have it set to “Set Initial Velocity”
User Avatar
Member
555 posts
Joined: Feb. 2017
Offline
in popnet, popadvectbyvolumes1, Advection type should be Update Velocity
User Avatar
Member
5 posts
Joined: Jan. 2017
Offline
Thanks everyone! I appreciate the help.
  • Quick Links