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")