It's
evil though. You shouldn't be doing a GetValue in an operator on an object that
you are not connected to as input.
-----Original Message-----
From: owner-xsi(at)Softimage.COM
[mailto:owner-xsi(at)Softimage.COM]On Behalf Of Mathieu
Leclaire
Posted At: Wednesday, January 31, 2007 4:52 PM
Posted
To: xsi
Conversation: get object name from scripted
op
Subject: RE: get object name from scripted
op
Oh
right... why didn't I think of that!? Yeah, I don't use scops much anymore
myself but in this case it's much quicker to do it that way.
Thanks!
-----Original Message-----
From: owner-xsi(at)Softimage.COM
[mailto:owner-xsi(at)Softimage.COM]On Behalf Of Graham D
Clark
Sent: Wednesday, January 31, 2007 4:37 PM
To:
XSI(at)Softimage.COM
Subject: Re: get object name from scripted
op
(its been a while I don't use scops too much now.)
I recall you can use dictionary,getobject and traverse up.
On 1/31/07, Mathieu
Leclaire <mleclair(at)hybride.com>
wrote:
Heu, this might sound weird but how can
I get, from within the scripted operator, the name of the
object on which the scripted operator is applied? Lets say for
example the output of the scripted op is " null.kine.local", well, I want
to extract the string "null". If I do a LogMessage(out.value); it will log me "null.kine.local". So I
though I would try getting it using out.value.parent.parent
but it gives me an error message. I must be missing something obvious but
I can't seem to find it. Anyone has a suggestion?
Thanks.
Mathieu Leclaire
R&D Programmer
Hybride
Technologies