kubabuk Posted February 15, 2007 Share Posted February 15, 2007 Hi guys, I need some help with the following expression. I'd like to create channel reference between testmantra2 and testmantra1 and have access to the value of the end frame. But instead retyping this each time I add a new ROP, I'd like to make use out of opdigits. so for example testmantra2 is referencing testmantra1: ch("../testmantra"`(opdigits(".")-1)`"/f2") ------to be clear opdigits returns me (2) -> 2-1->1------ But the problem is the whole expression seems to be to complex to work. I was thinking about strcat but I have three elements to concatenate: "../testmantra" `(opdigits(".")-1)` "/f2" and strcat joins only two... does it make sense? thanks kuba Quote Link to comment Share on other sites More sharing options...
sibarrick Posted February 15, 2007 Share Posted February 15, 2007 have you tried ch("../testmantra"+`(opdigits(".")-1)`+"/f2") or maybe ch("../testmantra"+`eval(opdigits(".")-1)`+"/f2") Quote Link to comment Share on other sites More sharing options...
kubabuk Posted February 15, 2007 Author Share Posted February 15, 2007 Thanks, just checked it but unfortunately none of them work . Seems like expression inside channel reference is not executed. kubs Quote Link to comment Share on other sites More sharing options...
grasshopper Posted February 15, 2007 Share Posted February 15, 2007 You shouldn't be using backticks within the expression. Try this: ch("../testmantra"+(opdigits(".")-1)+"/f2") john Quote Link to comment Share on other sites More sharing options...
sibarrick Posted February 15, 2007 Share Posted February 15, 2007 try this ch("../mantra"+(opdigits(".")-1)+"/f2") no single quotes snap! beat me to it Quote Link to comment Share on other sites More sharing options...
grasshopper Posted February 15, 2007 Share Posted February 15, 2007 try thisch("../mantra"+(opdigits(".")-1)+"/f2") no single quotes snap! beat me to it beat you ... by a few seconds! hehe Quote Link to comment Share on other sites More sharing options...
kubabuk Posted February 15, 2007 Author Share Posted February 15, 2007 Thanks, One more question, I couldn't make it work within script file field, what is it missing here...? C:/test_`$F+ch("../testmantra"+(opdigits(".")-1)+"/f2")`.ifd thanks a lot kuba Quote Link to comment Share on other sites More sharing options...
kubabuk Posted February 16, 2007 Author Share Posted February 16, 2007 Thanks, One more question, I couldn't make it work within script file field, what is it missing here...? C:/test_`$F+ch("../testmantra"+(opdigits(".")-1)+"/f2")`.ifd thanks a lot kuba Strange... new scene, new day = works fine 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.