If you implement your UI in Netview, it will survive a new scene call.

Other options include using custom preferences, or dumping your UI state to storage such as a file on the hard drive or as data in memory where a onBeginNewScene event can access the data.

Another option is plugin userdata. When your new scene event fires, store the parameter values of the custom property in the custom property's plugin userdata. After the scene is wiped clean as a new one, instruct your new scene event to install the custom property at the scene root using the plugin userdata as the parameter values. This will work in the general case because plugin userdata only lasts as long as the session. If the same code is run on a new session, your UI will remain virgin as it should.

Matt







Date: Mon, 23 Mar 2015 11:07:14 -0400
From: Eric Thivierge <ethivie...@hybride.com>
Subject: Self installing Prop survive New Scene
To: "softimage@listproc.autodesk.com"

Hello,

Was wondering if there is a way to have a self installing property
survive a New Scene call. Typically I attach it to the Scene Root but
that won't survive a New Scene call.

I have a UI that I would like to save the state of over a new scene call.

Anyone have a trick for this?

Eric T.

Reply via email to