Nov 2015
1 / 3
Nov 2015
Dec 2015

I'm creating a poly plane object in my script to help the user visualize something in real time depending on the parameters they set in the UI.  It gets destroyed upon the window closing for the tool I'm building being closed.

The annoying thing is when I start undoing, all the different actions that occured on the visualizer plane are part of the history.  So I start seeing a plane moving around.

I tried the constructionHisrtory flag but it did nothing.

I'm looking for a way to create this plane object without it actually being part of the history at all.  Alternatively if this isn't possible, is there a good way to draw some geometry without creating an actual object?

My script is actually written in python, but I don't think that really matters since mel and python commands are interchangeable. 

  • created

    Nov '15
  • last reply

    Dec '15
  • 2

    replies

  • 1.9k

    views

  • 1

    user

Construction History is not the same as undo history.

You can turn off undo with:
cmds.undoInfo( state=False )

21 days later

undoInfo -stateWithoutFlush off;
myAwesomeProc();
undoInfo -stateWithoutFlush on;

hope this his is what you're looking for