Re: different script languages in one script?

Date : Thu, 01 Jun 2006 22:37:19 -0700
To : XSI(at)Softimage.COM
From : Andy Jones <andy(at)thefront.com>
Subject : Re: different script languages in one script?
Also, as of 5.0, XSI has the Application.ExecuteScriptCode method. Very useful for embedded scripts, as it doesn't require a file.

I don't know of a way to switch languages part way down in a script file or something. It would generally be undesirable to do it because you'd lose all your variables and stuff. Maybe there's some sort of crazy hack you could do if there were some way to grab the running script code from whatever script host is running. Even if it's possible, it's probably not worthwhile, though, unless you're dealing with some sort of very weird scenario I can't even imagine. Seems more likely that you're trying to copy and paste code fragments from different languages, right?

-Andy

brad friedman wrote:

If a language has an eval() type function then you can wrap it like such:

http://xsi.fie.us/fiejseval/

Very dirty... but does the job.

You can put JScript code in a string literal and eval it through the command from any other language XSI supports, including C++, or C# through COM, in the extreme cases.

-brad

*/Bernard Lebel <3dbernard(at)gmail.com>/* wrote:

    There are two ways that I'm aware of:

    - Using the ExecuteScript command, which allows you to run a script in
    any supported language

    - Using a custom command, which allows you to run a command in any
    supported language.


However, I have never heard mixing two different language in the *same* script file.


Cheers Bernard



    On 6/1/06, David Saber wrote:
    > I heard it is possible to mix different script languages in one
    script,
    > but how do you do that?
    >
    > ---
    > Unsubscribe? Mail Majordomo(at)Softimage.COM with the following
    text in body:
    > unsubscribe xsi
    >
    ---
    Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text
    in body:
    unsubscribe xsi



--- Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body: unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.