Just delete them? Or you mean by script
I wrote something similar in JScript to freeze some operators under certain
stack. I just changed it to delete all operators below the Modeling Stack.
It only works with 1 object, you'll need to add a loop.
// JScript
delOps(selection(0))
function delOps(oObj){
var oOpColl = new ActiveXObject( "XSI.Collection" );
var oOpStack = new Enumerator( oObj.ActivePrimitive.ConstructionHistory );
for (;!oOpStack.atEnd();oOpStack.moveNext()){
if (oOpStack.item().name == "Modeling"){
var ModelingFlag = 1;
continue;
}
if (ModelingFlag == 1){
oOpColl.add (oOpStack.item());
}
}
if (oOpColl.Count>0) DeleteObj( oOpColl ) ;
}
Martin
On Thu, Jul 23, 2015 at 5:47 PM, pedro santos <[email protected]> wrote:
>
>
>
> *HiQuite a few times when I'm adding operators to multiple objects I would
> also like to clear those objects of any operator. This is not Freezing, as
> I do not want to apply those operators, but remove them. More over if the
> above is possible, is it also possible to remove operators only from the
> modeling stack? Alike one uses Freeze and Freeze modeling
> differently?Thanks*
> *Pedro*
>