Re: get object name from scripted op

Date : Wed, 31 Jan 2007 13:36:47 -0800
To : XSI(at)Softimage.COM
From : "Graham D Clark" <mailgrahamdclark(at)gmail.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.