Log in

View Full Version : Question about input strings


Sagekilla
26th August 2008, 05:23
I'd like to have a string passed from a function to be output and used as an actual function, something like this:


function blah ( clip clip string "test" ) {

clip.String(test)

}

Except that doesn't actually work and I don't know how to pass that along.. Sorry! I couldn't figure out how to do this after looking through the docs a few times over. But if anyone can help it would be appreciated :)

Gavino
26th August 2008, 08:27
I've tried reading your question several times, but I still don't understand it. Can you please explain again.

Perhaps you just mean something likefunction blah ( clip clip , string "test" ) {

clip.Subtitle(test)

}

Didée
26th August 2008, 08:39
To me it seems Sagekilla is searching for "Eval()" ?

function blah ( clip clip , string "test" ) {

clip
Eval(test)
}

or

function blah ( clip clip , string "test" ) {

filterchain = "clip." + test
Eval(filterchain)
}

Gavino
26th August 2008, 09:03
Well done, Didée, your powers of interpretation are obviously better than mine. Reading the question again in the light of your answer, it now makes sense. :)

Sagekilla
26th August 2008, 17:58
Thank you Didee, that was what I was looking for :) Wasn't sure how to explain it though.