Timur Khodjaev Posted December 21, 2007 Share Posted December 21, 2007 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? Quote Link to comment Share on other sites More sharing options...
SpencerL Posted December 21, 2007 Share Posted December 21, 2007 You can just your expression in a Group POP and then either use that group to act as the source of a new popnet or use that group in a split POP Quote Link to comment Share on other sites More sharing options...
symek Posted December 21, 2007 Share Posted December 21, 2007 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.