Hello,
In Ventuz Designer every scene data external has a Default value property (In the Constraints Section). Is there a way from a script to access the value of this Default property for a given external? I know the externals themselves are accessible and settable from a script but can you access the other properties of an external that you see when in designer ?
I am trying to write a script that set's all scene data externals to their default value on startup.
Any help would be appreciated.
Cheers
Gaz
Hello Ventuzians!
THE FORUMS ARE CLOSED!
Please join our discord server HERE!! << click me
We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server
Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!
THE FORUMS ARE CLOSED!
Please join our discord server HERE!! << click me
We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server
Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!
Accessing Scene Data 'Default' Property
Moderator: Support
Accessing Scene Data 'Default' Property
Gareth - Kinetic Pixel
Re: Accessing Scene Data 'Default' Property
Mods, could this be moved to the Ventuz 5 section as that is where i meant to post it.
Cheers
Cheers
Gareth - Kinetic Pixel
Re: Accessing Scene Data 'Default' Property
You can get the whole xml via
cluster.scenemodel(iid, async state) or cluster.scenemodel(identity,async state)
this can be parsed and casted to a dataModel type
http://www.ventuz.com/support/help/late ... ng4.netSDK
cluster.scenemodel(iid, async state) or cluster.scenemodel(identity,async state)
Code: Select all
//
// Zusammenfassung:
// Gets the SceneModel XML of a scene.
//
// Parameter:
// sceneIdentity:
// The scene identity (filename without extension) of the scene to query
//
// asyncState:
// A user-defined object that qualifies or contains information about an asynchronous
// operation.
//
// Rückgabewerte:
// A task that represents the asynchronous operation.
//
// Ausnahmen:
// T:Ventuz.Remoting4.ServerException:
// InaccuratePersistentSceneModels if the scene models do not match each other
//
// Hinweise:
// All connected machines are queried for the SceneModel of the specified scene
// identity. Only if the returned XML of all machines is equal, an XML is returned
// to the caller. The scene model is read from the scene file - even if a scene
// with the same identity is already loaded into memory.
public Task<string> SceneModel(string sceneIdentity, object asyncState);
//
// Zusammenfassung:
// Gets the SceneModel of an in-memory scene specified by iid.
//
// Parameter:
// iid:
// Ventuz.Remoting4.IID of the scene to receive the in-memory SceneModel
//
// asyncState:
// A user-defined object that qualifies or contains information about an asynchronous
// operation.
//
// Rückgabewerte:
// A task that represents the asynchronous operation.
//
// Ausnahmen:
// T:Ventuz.Remoting4.ServerException:
// InaccurateSceneModels if the SceneModel of the connected machine are different.
//
// Hinweise:
// If the Ventuz.Remoting4.Cluster is connected to multiple machines and the returned
// XML differs an exception is thrown. The returned XML may differ from the persistent
// SceneModel if the scene has been modifified in memory (if the Ventuz.Remoting4.Cluster
// is connected to a Ventuz Designer for example)
public Task<string> SceneModel(IID iid, object asyncState);
http://www.ventuz.com/support/help/late ... ng4.netSDK