oldiesgoodies Posted December 24, 2010 Share Posted December 24, 2010 Hi I have an expression like below and I cannot get it to evaluate properly tex("T:\TEXTURE\color_`stamp("../copy1","color",0)`.jpg",$BBX,$BBZ,r) I am trying to use stamping from a copy node. This stamp expression works well normally, but I cannot make it work inside this expresion. I can use COPS for it but the "pic" function is extremely slow. thanks Quote Link to comment Share on other sites More sharing options...
Macha Posted December 24, 2010 Share Posted December 24, 2010 It's not stamps() you need, rather than stamp()? Quote Link to comment Share on other sites More sharing options...
Macha Posted December 24, 2010 Share Posted December 24, 2010 Sorry, I tried my above tip and it doesn't work. Here is a workaround that does work though: Just above that node create an attribute called $COL and stamp it. Then the following should work: tex("T:\TEXTURE\color_$COL.jpg",$BBX,$BBZ,r) Quote Link to comment Share on other sites More sharing options...
anim Posted December 24, 2010 Share Posted December 24, 2010 or if you want it all in one expression it would be tex("T:\TEXTURE\color_" + stamp("../copy1","color",0) + ".jpg",$BBX,$BBZ,r) Quote Link to comment Share on other sites More sharing options...
Macha Posted December 24, 2010 Share Posted December 24, 2010 (edited) deleted Edited December 24, 2010 by Macha Quote Link to comment Share on other sites More sharing options...
oldiesgoodies Posted December 24, 2010 Author Share Posted December 24, 2010 Thanks guys, I went ahead with the attribute method. It is also good to know that string addition works. 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.