PlugsΒΆ

Plugs are the objects that store actual data in nodes. For instance, the current scene time is contained in the Time plug in Document.

-- The current scene time scene is in Document.Time
print (Document.Time)

Reading a Plug value

Use the get method of the plug:

local time = Document.Time:get ()
print ("The current time is "..time)

Iterating over all plugs of a node

Use the plugs iterator:

-- List all the plugs of the Frustum node:
for p in plugs (_"Perspective|Frustum"do
    print (p)
end