Back to Reference Guide Index

<script> XML node

XML Node Summary

<script
  name=""
  filename=""
  absolute_path="0"
  run_mode="ZOMBIE"
  language="LUA"
  livecoding="0"
  >
  <raw_data />
</script>


<script>

Description

Allows to load and execute scripts (Lua or Python) especially written to interact with scene's nodes using the Lua/python host API.


Attributes


Code sample

<script name="init_scene" run_mode="INIT" filename="init.lua" LANGUAGE="LUA" />

<script name="update_scene" run_mode="FRAME" LANGUAGE="LUA" >
	<raw_data><![CDATA[	 
elapsed = gh_utils.get_elapsed_time(ID)
	]]></raw_data>
</script>

<script name="resize_scene" run_mode="SIZE" LANGUAGE="LUA" >
	<raw_data><![CDATA[	 
width, height = gh_window.get_size(ID)
	]]></raw_data>
</script>

			

<raw_data>

Description

Allows to integrate the source code of a script directly in the XML code without requiring an external file.



GeeXLab Rootard Guide | Downloads | Contact | Newsletter