Jump to content

Switch Question


Timur Khodjaev

Recommended Posts

Hi, im trying to do some basic fireworks and encountered some intresting problem.

Its looks like i cant use per particle attributes inside Select input of switch node.

if i put something like if($LIFE <.5,0,1) in switchs input expression its imediately gives me error.

If you replace $LIFE with $FF all starting to work so i guess the problem in per particle attributes.

Is there other way to make attribute on particles for ex. rocketType and then make switches based on that attribute without using switch op?

Link to comment
Share on other sites

Generally speaking Switch can't see attribute of points in incoming geometry. How it would do that? Per point? Switch lets go on its inputs as a whole not a part of it. Thus your problem. You could use point() expression to get to the $LIFE attribute of some (one) point but this won't solve your problem. Go with SpencerL suggestion.

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...