Hi Stephen,
I've been messing around with the ExecuteScriptCode() method, but its
usage is too clumsy in this case. I only made my code work by enclosing
it in a function written in string format, messing around with the
Arguments Array. I can see its use when I try to enclose a piece of code
written in another language, which seems to be what it is designed for,
but in my case eval(), as suggested by Martin, will do the job just
fine. Nonetheless, many thanks for the suggestion!
-André
Stephen Blair wrote:
How about Application.ExecuteScriptCode ?
-----Original Message-----
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of André Adam
Sent: March 28, 2006 8:31 AM
To: xsi(at)Softimage.COM
Subject: Executing a String in JScript?
It would be very convenient if I could get a certain string to be considered regular code inside of a jscript. To make something like this actually return the object's x-position:
var a = new Array(".PosX.Value");
LogMessage(Selection(0) + a[0]);
Is there an Execute() or something similar available? Thanks in advance!
-André
---
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