old thread was not able to show root element, so here new thread: big problem with xref and merge data

 
 
 
Posted by:mtea
Data created:26 October 2010

I have a big problem with zk and xref and a few more only in zk, but with xref it is very important

i had a room, in this scene i used zk..now i want to load a xref, where i used zk too...than this will happen and the scene is complete destruct..

System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
   bei Ephere.Plugins.Autodesk.Max.Zookeeper.Views.Tree.#=qMpcjQaSPOw5kUZZs3K8S8xaUCpwe1DRWP7seNuXhgZM=(#=qgG$4MvJI9xDgGjPx9_CZ5Q== #=qpn_6V74_7AGJfygKHRZBTg==, Boolean #=qJF0DSQ48WOlUYirkEkhPjg==)
   bei Ephere.Plugins.Autodesk.Max.Zookeeper.Views.Tree.#=qDFprVn9jMefLcv7D67Cf5tblGRDtIVGfF7eGMJ2PJjo=(#=qZWBPDVVMVF4pwio7KikXtw== #=qsXLlsrdJYsvdk0sm8tn$Og==, #=q2bNDtokyYj25l6xgf$l$YEDX4YhQ0$tkv7nQ$QzzcGuPxNtRGqcyB8Rwf_m6APH2 #=qV6XUS0CzERXKn1hoQq$8RA==)
   bei Ephere.Plugins.Autodesk.Max.Zookeeper.ObjectNodeControlMaintainer.#=qPKRowa9hPkXrAAyLPqSgKRz$8zxZwdGJJZP8zrqfme8=(Entity #=qRrwhYMiENBAPxqNnmTeioA==, #=q2bNDtokyYj25l6xgf$l$YEDX4YhQ0$tkv7nQ$QzzcGuPxNtRGqcyB8Rwf_m6APH2 #=qa87E_HFLNdsAdNjMfB6Ppg==)
   bei Ephere.Plugins.Autodesk.Max.Zookeeper.Plugin.CurrentLayerChangedHandler.Invoke(IILayer layer)
   bei Ephere.Plugins.Autodesk.Max.Zookeeper.Entities.ILayer.SetProperty(BooleanProperty property, Boolean value)
   bei Ephere.Plugins.Autodesk.Max.Zookeeper.Views.Tree.#=qNZDOie$Nt4Rb1490r84iDbW1pjsZXxtMiaOMPtndZL4=(#=qZWBPDVVMVF4pwio7KikXtw== #=qKLsKjJBltAfczzf20UbmKw==, ILayer #=qWWTHtQb1mdn0Vl$8AYopSA==, Boolean #=q6gRaHiQ2Mp4_V7$tAGDaxA==)
   bei Ephere.Plugins.Autodesk.Max.Zookeeper.Views.Tree.#=qn8dIzMM5gxiFWioTk$2iAgVVqI5xRbsOwrOWyi1DTW0=(#=qZWBPDVVMVF4pwio7KikXtw== #=qXIsLanyD$6tlUuXnA0nj3Q==, Point #=qJdCRg7MwgxtYpilfpSkvFQ==)
   bei Ephere.Plugins.Autodesk.Max.Zookeeper.Views.Tree.#=qHqJN8dFz7z1cczT9YjgbSXZ$ueuK9i$2gmOrk0VpjBg=(MouseEventArgs #=q3y_w666TGR3eQnl09XWddg==, #=qZWBPDVVMVF4pwio7KikXtw== #=q$vsTALjjh7q6$yLXULG2Rg==, #=qyEGkeTx2LuPsw1k82buqlw== #=qU6ii7VFDPzFyPb8LTbePUQ==)
   bei #=qps3vQHFXY3tG9eNRW4hDOBfq2gwFqc$jFBSpbKkZbrg=.OnMouseDown(MouseEventArgs #=qaLM3QG5YWkH8bmwQ2oJo0g==)
   bei Ephere.Plugins.Autodesk.Max.Zookeeper.Views.Tree.OnMouseDown(MouseEventArgs #=qHVt_oHdSnjh59VsFf7_MpQ==)
   bei System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
   bei System.Windows.Forms.Control.WndProc(Message& m)
   bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

so now i thought it depends on the zkanchor..so i reset the zk in the xrefscene and loaded it into the roomscene...nothing happened, so it is not possible to see the layers of the xref file in the zk...but there are in the layer manager of max..

 

the same problem is the same with merging files..i canat merge two scene with zk..zk is not able to show all files than..

that's real big problem, because we always work with xref and of course zk..

 

so now to the small problem:

-if you delete nodes in the schematic view than they are not deleted..that is great..something like hiding..but the problem is, if you make a new not on the node, where you delete (hide) the last node, zk will make a new node..if you delete, you first have to refresh to see, that there is something in the node...

-a few more will come in future, but now i have to make the project:)

ok we found one way as solution for working with xref's and merging...

if you want to load a xref, in this you first have to reset zk, that no anchor is in this scene..so working with layer groups is not possible, but this is not so important..than you can load the xref into your scene..but than there are not layers..for seeing them you have to reset zk in your file where you load the xref..and oppla you see all layers and everything is fine..same way for merging objects...

now the thoughts of my boss and me: maybe the anchor is freezed, hided and all this stuff, and for the user there is no possibility for deleting the zk components..ok you can delete the zkanchor, but i'm sure there is a helper, like a temporary file, where you are not able to delete it..so if you merge two file with this helper it is not able to delete the old or skip the new one...and that's why the scenes crash...

for this project it is ok, becaue we have this way, and until now it is complete safety for us

i don't know how zk works, because i'm only a user that works with zk and not for it, but a friend of us programmed photostudio for 3d max and he is working with helpers too..all this helpers are freezed and hided, but you as a user are able to unhide them and delete them and so max is also able to unhide and delete them, that's why it is never possible to have two of them in one scene..i think for zk it is also not possible to have two temporary notes in the scene and that's way it is not working...

 

sorry for telling that, but we are working in big projects with you tool and we want that is nearly bugfree..hope we can help you with our thoughts and crashed scenes:)

Hi Hannes,

Thanks for expressing this, it is one of the issues that we are aware of. ZKAnchor hidden scene node contains all Zookeeper information inside of it. If you delete it you remove all that information (including info about layer nesting). You can do that automatically bu using "Reset" option from the Zookeeper menu in 3dsmax.

Merging two ZKAnchors isn't fully supported at the moment. If you do merge ZKAnchor from another scene Zookeeper will ignore it, and therefore also any layers and layer groups contained within it. The workaround I would suggest is the one you have discovered.

Proper merging has been on my TODO list for a while and I am going to bump it and see if this can be sorted in the next few builds. We apologize for any inconvenience meanwhile and hope that you can bear with it until its fixed.

Thanks!

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Hey ephere,

at the moment it is not a big problem, because it is good working with reseting zookeeper and open it again, that zookeeper is able to create a new zkanchor and read all informations new from the scene...

we noticed that it helps often to reset zookeeper..

 

but thanks guys, it is a great programm and we love it to have in our pipeline