Message 1 of 3
script controller, entering a longer script
Not applicable
04-19-2009
12:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hi when I input a multiple line script into a script controller it only adds the last line. Ive tried many ways to make it return using the ¬ key with no success.
How do I get a multi line script to be accepted ?
thanks joe g
cryshape.rotation.controller.Available.controller = rotation_script ()
cryshape.rotation.controller.rotation_script.controller.script = (
"theZ = normalize (" + num1 as string + "-" + objcen as string + ")"
"theUp = "
"theX = normalize (cross theUp theZ)"
"theY = normalize (cross theZ theX)"
"theTM = matrix3 theX theY theZ"+ num1 as string
"$"+cryshape.name as string + ".transform = theTM"
)
How do I get a multi line script to be accepted ?
thanks joe g
cryshape.rotation.controller.Available.controller = rotation_script ()
cryshape.rotation.controller.rotation_script.controller.script = (
"theZ = normalize (" + num1 as string + "-" + objcen as string + ")"
"theUp = "
"theX = normalize (cross theUp theZ)"
"theY = normalize (cross theZ theX)"
"theTM = matrix3 theX theY theZ"+ num1 as string
"$"+cryshape.name as string + ".transform = theTM"
)