BaseDraw Undos
-
On 20/09/2017 at 14:47, xxxxxxxx wrote:
Hi, I'm was making a pretty simple script dealing with the BaseDraws of a document.
import c4d from c4d import gui def main() : doc.StartUndo() checkspot =0 while doc.GetBaseDraw(checkspot) != None: bd = doc.GetBaseDraw(checkspot) doc.AddUndo(c4d.UNDOTYPE_CHANGE,bd) bd.SetName("Viewport " + str(checkspot)) checkspot = checkspot+1 doc.EndUndo() c4d.EventAdd() if __name__=='__main__': main()
So I'm just renaming each of the BaseDraws, which works fine. But when I use the Undo that I implemented the current BaseDraw that I'm viewing changes as well as the names of the BaseDraws reverting and I'm not sure why that would swap my view.
-
On 21/09/2017 at 04:00, xxxxxxxx wrote:
Hi,
I'm afraid changing the name of a BaseDraw/viewport is not an undoable change.
-
On 22/09/2017 at 10:41, xxxxxxxx wrote:
Thanks!