Parent3DObject property of an operator doesn't seem to be working.

Date : Thu, 6 Sep 2007 15:59:56 -0700
To : xsi(at)Softimage.COM
From : "Steven Caron" <carons(at)gmail.com>
Subject : Parent3DObject property of an operator doesn't seem to be working.
i can't seem to use "operator.Parent3DObject". it seems to be returning "None" for me.. any ideas as to why?

thanks in advance
steven

#code
#imports
import win32com.client
from win32com.client import constants
   
#globals
xsi    = win32com.client.Dispatch( "XSI.Application" ).Application
xsiColl = win32com.client.Dispatch( "XSI.Collection" )
xsiPrint = xsi.LogMessage

meshSelect = xsi.Selection
validMeshes = xsiColl
for mesh in meshSelect:
    if mesh.Type == "polymsh":
        validMeshes.add(mesh)

if validMeshes.Count > 1:
    genOp = xsi.ApplyGenOp ("MeshMerge", "", validMeshes.GetAsText(), 3, "siPersistentOperation", "siKeepGenOpInputs")(0) #gets the single operator from the collection returned
    xsiPrint(genOp.Parent3DObject ) #returns "None" for me???
else:
    xsiPrint("not enough valid meshes")



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.