Finding Elements using the Full Path
 
 
 

If you know the full path of an object you can get a pointer to it using the Dictionary.GetObject method. Alternatively, if you wanted to use scripting commands, you could use the GetValue command with the full path specified. Both strategies return an object pointer.

The equivalent C++ function to the Dictionary.GetObject is the CRef::Set function which makes it very easy to turn the full name (SIObject::GetFullName of an object into its equivalent C++ object.

CRef refRateParam;
refRateParam.Set( L"PlayControl.Rate" );
app.LogMessage( Parameter(refRateParam).GetValue().GetAsText() );

In this case we are reading the value of a Parameter, so notice how a temporary Parameter object is used to give access to the Parameter::GetValue method.