Re: deleting disconnected clusterkeys
@Gallagher: You can feed the whatevernum names directly into DeleteObj() calls as strings. That should work. It won't delete them if they came from a referenced model, as you can't delete referenced things that aren't the model nulls themselves. On Thu, Feb 5, 2015, 1:00 AM David Gallagher davegsoftimagel...@gmail.com wrote: Does anyone know how I can purge my scene from these clusterkeys I can't seem to delete? It errors with this each time I save this file. ' WARNING : 3000 - Save: [6] objects were not saved normally ' WARNING : 3000 - -- [clskey267] was saved, but is disconnected from the scene. (Floating object) ' WARNING : 3000 - -- [clskey52056] was saved, but is disconnected from the scene. (Floating object) ' WARNING : 3000 - -- [clskey3221] was saved, but is disconnected from the scene. (Floating object) ' WARNING : 3000 - -- [clskey18389] was saved, but is disconnected from the scene. (Floating object) ' WARNING : 3000 - -- [clskey52757] was saved, but is disconnected from the scene. (Floating object) ' WARNING : 3000 - -- [clskey21774] was saved, but is disconnected from the scene. (Floating object)
Re: deleting disconnected clusterkeys
Not sure if I picked the right classID so if it doesn't find a match try some others http://download.autodesk.com/global/docs/softimage2014/en_us/sdkguide/si_om/siClassID.html On Thursday, February 5, 2015, David Gallagher davegsoftimagel...@gmail.com wrote: Great! I will try it. On 2/5/2015 5:37 AM, David Barosin wrote: This is untested but the idea is there. ### import win32com from win32com.client import constants as c oCls = Application.FindObjects2(c.siClusterID) for i in oCls: if clskey in i.Name: Application.DeleteObj(i) ### On Thu, Feb 5, 2015 at 12:59 AM, David Gallagher davegsoftimagel...@gmail.com javascript:_e(%7B%7D,'cvml','davegsoftimagel...@gmail.com'); wrote: Does anyone know how I can purge my scene from these clusterkeys I can't seem to delete? It errors with this each time I save this file. ' WARNING : 3000 - Save: [6] objects were not saved normally ' WARNING : 3000 - -- [clskey267] was saved, but is disconnected from the scene. (Floating object) ' WARNING : 3000 - -- [clskey52056] was saved, but is disconnected from the scene. (Floating object) ' WARNING : 3000 - -- [clskey3221] was saved, but is disconnected from the scene. (Floating object) ' WARNING : 3000 - -- [clskey18389] was saved, but is disconnected from the scene. (Floating object) ' WARNING : 3000 - -- [clskey52757] was saved, but is disconnected from the scene. (Floating object) ' WARNING : 3000 - -- [clskey21774] was saved, but is disconnected from the scene. (Floating object)
Re: deleting disconnected clusterkeys
This is untested but the idea is there. ### import win32com from win32com.client import constants as c oCls = Application.FindObjects2(c.siClusterID) for i in oCls: if clskey in i.Name: Application.DeleteObj(i) ### On Thu, Feb 5, 2015 at 12:59 AM, David Gallagher davegsoftimagel...@gmail.com wrote: Does anyone know how I can purge my scene from these clusterkeys I can't seem to delete? It errors with this each time I save this file. ' WARNING : 3000 - Save: [6] objects were not saved normally ' WARNING : 3000 - -- [clskey267] was saved, but is disconnected from the scene. (Floating object) ' WARNING : 3000 - -- [clskey52056] was saved, but is disconnected from the scene. (Floating object) ' WARNING : 3000 - -- [clskey3221] was saved, but is disconnected from the scene. (Floating object) ' WARNING : 3000 - -- [clskey18389] was saved, but is disconnected from the scene. (Floating object) ' WARNING : 3000 - -- [clskey52757] was saved, but is disconnected from the scene. (Floating object) ' WARNING : 3000 - -- [clskey21774] was saved, but is disconnected from the scene. (Floating object)
Re: deleting disconnected clusterkeys
Great! I will try it. On 2/5/2015 5:37 AM, David Barosin wrote: This is untested but the idea is there. ### import win32com from win32com.client import constants as c oCls = Application.FindObjects2(c.siClusterID) for i in oCls: if clskey in i.Name: Application.DeleteObj(i) ### On Thu, Feb 5, 2015 at 12:59 AM, David Gallagher davegsoftimagel...@gmail.com mailto:davegsoftimagel...@gmail.com wrote: Does anyone know how I can purge my scene from these clusterkeys I can't seem to delete? It errors with this each time I save this file. ' WARNING : 3000 - Save: [6] objects were not saved normally ' WARNING : 3000 - -- [clskey267] was saved, but is disconnected from the scene. (Floating object) ' WARNING : 3000 - -- [clskey52056] was saved, but is disconnected from the scene. (Floating object) ' WARNING : 3000 - -- [clskey3221] was saved, but is disconnected from the scene. (Floating object) ' WARNING : 3000 - -- [clskey18389] was saved, but is disconnected from the scene. (Floating object) ' WARNING : 3000 - -- [clskey52757] was saved, but is disconnected from the scene. (Floating object) ' WARNING : 3000 - -- [clskey21774] was saved, but is disconnected from the scene. (Floating object)
deleting disconnected clusterkeys
Does anyone know how I can purge my scene from these clusterkeys I can't seem to delete? It errors with this each time I save this file. ' WARNING : 3000 - Save: [6] objects were not saved normally ' WARNING : 3000 - -- [clskey267] was saved, but is disconnected from the scene. (Floating object) ' WARNING : 3000 - -- [clskey52056] was saved, but is disconnected from the scene. (Floating object) ' WARNING : 3000 - -- [clskey3221] was saved, but is disconnected from the scene. (Floating object) ' WARNING : 3000 - -- [clskey18389] was saved, but is disconnected from the scene. (Floating object) ' WARNING : 3000 - -- [clskey52757] was saved, but is disconnected from the scene. (Floating object) ' WARNING : 3000 - -- [clskey21774] was saved, but is disconnected from the scene. (Floating object)