minnie Posted March 10, 2008 Share Posted March 10, 2008 Hi, there~ (First of all, I want to tell you that my English is not good. ^^; I have a question. I want to rendering by passes using "take". But it's uncompotable that every take needs to set "display ON/OFF" up. So, I've tried using expression at the attribute, "display". The take's name is "test_diff", and the geometry's name is "test". if(substr($ACTIVETAKE,0,4)==$OS, 1, 0) But it doesn't work. ㅡㅡ;; Is it ridiculous? If you can help me, please let me know~~~ Quote Link to comment Share on other sites More sharing options...
sibarrick Posted March 10, 2008 Share Posted March 10, 2008 The "if" expression won't compare strings, you have to use a "strcmp" expression inside the if if(strcmp(substr($ACTIVETAKE,0,4),$OS)==0, 1, 0) Quote Link to comment Share on other sites More sharing options...
minnie Posted March 11, 2008 Author Share Posted March 11, 2008 The "if" expression won't compare strings, you have to use a "strcmp" expression inside the ifif(strcmp(substr($ACTIVETAKE,0,4),$OS)==0, 1, 0) Wow~~!! I works!!! Yoy really helped me. Thank you so~~~~ much~!!!! 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.