Re: [scripting] Where an operator reads.

Date : Fri, 20 Jan 2006 10:24:09 +1100
To : XSI(at)Softimage.COM
From : Aloys Baillet <aloys.baillet(at)gmail.com>
Subject : Re: [scripting] Where an operator reads.
Hi Francois,

Unfortunately the only Object that natively supports the operator stack reading is the Primitive (with the ContructionHistory property).
However you can use the EnumElements command (or the NestedObject property if you're using XSI 5) to get all the children of any object, including Weightmaps, then filter the results by ClassName: if they are Operators you should have the operator stack in the right order.
Might be worse doing some testing though...
Hope this helps,

Aloys

On 20/01/06, Francois Lord < francoislord(at)gmail.com> wrote:
Does anyone know how to figure where an operator is reading in the stack
(like the tooltip for TextureOps) in scripting?
I need to know that for any kind of operator that can be applied on
ClusterProperties (TextureOp, Weight Map Generator, Weight painter,
Automatic Envelope Assignment, etc.).

I'm writing a SceneCleaner plugin, and I want to freeze some operators
automatically. For example, an Automatic Envelope Assignment operator
should always be frozen if there are no other operators under it (unless
you're working with a very whacked-up rig). I just can't figure if there
are operators under it.

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



--
Aloys Baillet - XSI Technical Director
Character Dpt - Animal Logic
--

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.