zglynn Posted March 25, 2010 Share Posted March 25, 2010 Hey All There has been something that I haven't been able t figure out for quite some time. Whenever I create a custom attribute, and try to use it as a local variable, it doesn't work. For example I created an attribute called zImpact and when I try t switch between two objects using the expression, if($ZIMPACT == 1, 1, 0) it doesn't work. I have to use the point() to call it in. Example, if(point("../attribtransfer1", 0, "zImpact", 0) == 1, 1, 0) My question is why can't I just use $ZIMPACT ? -Zach impact.hipnc Quote Link to comment Share on other sites More sharing options...
graham Posted March 25, 2010 Share Posted March 25, 2010 The problem is that your Switch SOP is not processing things on a per point basis. $ZIMPACT is a reference to the current points attribute value for zImpact. The switch doesn't know about any currently iterating points. Your point() expression works because you are specifically saying look at point 0. If you tried using $ZIMPACT in a point sop it works fine since that op is actually iterating points. Quote Link to comment Share on other sites More sharing options...
zglynn Posted March 26, 2010 Author Share Posted March 26, 2010 Hey Thanks for the info. That explains a lot! -Zach 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.