Documentation Index
Fetch the complete documentation index at: https://rive-update-scripting-docs-535.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Represents a property that holds a ViewModel value.
Fields
value
The current view model value.
function init(self: VMNameNode, context: Context): boolean
local vm = context:viewModel()
if vm then
local nestedVMProp = vm:getViewModel("nestedVM")
if nestedVMProp then
local nestedVM = nestedVMProp.value
local age = nestedVM:getNumber("age")
if age then
print("nestedVM age:", age.value)
else
print("'age' property not found on nestedVM.")
end
else
print("'nestedVM' property not found on ViewModel.")
end
else
print("No ViewModel found on context.")
end
return true
end