PDA

View Full Version : program code displayed as text


alexx
02-24-2006, 09:43 AM
i need to create some computer screens which show program code running through and so.

i took one of my mel scripts which has about 500 lines.
i replaced the return characters in the file by "\n" copied and pasted it in the text tool of shake..

now comes the funny part: shake thinks that my text REALLY is program code and tries to execute it (but fails since mel is not really native to it :)

i get error messages like:
error: NRiScript1.Text1.textExpression, line 2: missing ;
if (`gmatch ($line) "New job has ID:*"`)

is there any way to tell shake that this really is just text?

i dont really want to create huge images in photoshop to scroll them through.

cheers

alex

alexx
02-24-2006, 09:53 AM
co-worker idea:

create a local variable and paste the text there, and the use that variable in the text field with {myText}

so never mind :)

cheers

alex

alexx
02-24-2006, 10:48 AM
hmm.. worked until i tried to render the file..

any other ideas?

cheers

alex

pgraham
02-24-2006, 06:38 PM
I copied the contents of a Shake script into a text node, and rendered it through a fileOut just fine. If you put a colon : at the front, it will treat the text as an expression, so make sure you're not doing that.

Your error message says the parameter name is "textExpression." Maybe that field automatically assumes the contents are an expression. The text node I'm using only has a "text" parameter (Shake 3.5).

Also, Shake will convert return characters to \n automatically when you paste.

CGTalk Moderation
02-24-2006, 06:38 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.