<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi everyone,<div><br></div><div>I am trying to add a custom property to the state xml. </div><div><br></div><div>For eg: </div><div><br></div><div>I loaded object.stl and did a slice on it. Then, I saved the state and went to look at the XML. </div><div><br></div><div><div><ProxyCollection name="sources"></div><div>      <Item id="4031" name="Slice1"/></div><div>      <Item id="3783" name="object.stl"/></div><div> </ProxyCollection></div></div><div><br></div><div>I want to add an extra property called "user" </div><div><br></div><div><div><ProxyCollection name="sources"></div><div>      <Item id="4031" name="Slice1" user="dev"/></div><div>      <Item id="3783" name="object.stl" user="basic"/></div><div> </ProxyCollection></div></div><div><br></div><div>the extra property will be added during the saving of the state. I will be changing user property using a widget. </div><div>I just want to know how to send the value of my variable user to be printed in the xml. </div><div><br></div><div>I have been looking at a couple of classes  <span style="color: rgb(51, 51, 51); font-family: Helvetica, arial, nimbussansl, liberationsans, freesans, clean, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; font-weight: bolder; line-height: 26px; font-size: 12pt; background-color: rgb(255, 255, 255);">vtkSMStateVersionController, </span><span style="color: rgb(51, 51, 51); font-family: Helvetica, arial, nimbussansl, liberationsans, freesans, clean, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; font-weight: bolder; line-height: 26px; font-size: 12pt; background-color: rgb(255, 255, 255);">vtkSMStateLoader, </span><font color="#333333" face="Helvetica, arial, nimbussansl, liberationsans, freesans, clean, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"><span style="line-height: 26px;"><b>vtkSMProperty. </b></span></font></div><div>I got confused after looking at so many classes related to this.  Do i need to register my variable or send it using a specific function?</div><div>Is there some documentation/tutorial for this?</div><div><br></div><div>thanks </div><div><br></div><div>Michal Wozniak</div><div><br></div><div><br></div><div><br></div>                                          </div></body>
</html>