LUALoriotPro WEB site

LoriotPro scripting documentation
Extensions for LUA language

Table of contents Search function

Print the current page Mail this  link UTUBE Channel version française

lpav.GetAnimListObject

Syntax

value = lpav.GetAnimListObject(0,"Animation_Reference","array")

Description

This LUA function provides a list of all the graphical objects of an Active View that has the Animation Reference specified.

The Animation reference is set manually in the object Properties -> Effect tab.

Parameters

Animation_Reference : The animation reference value

array : An LUA table of the graphical object UID with all the object with that animation reference

Return Values

value : 1 if succeeded

array : An LUA table of the graphical object UID with all the object with that animation reference

Return nil if an error occurs

Example

if (lpav.GetAnimListObject(0,"TOTO","a")) then
for key,value in ipairs(a) do
lp.Print(key,' ',value,'\n')
end
end



www.loriotpro.com