RE: get object name from scripted op

Date : Wed, 31 Jan 2007 17:26:56 -0500
To : <XSI(at)Softimage.COM>
From : "Mathieu Leclaire" <mleclair(at)hybride.com>
Subject : RE: get object name from scripted op
Well, it all seems to work fine... why is it so evil? What can I expect to go wrong? And if it ain't the right way then please show me the right one!
-----Original Message-----
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM]On Behalf Of Luc-Eric Rousseau
Sent: Wednesday, January 31, 2007 4:58 PM
To: XSI(at)Softimage.COM
Subject: RE: get object name from scripted op

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




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.