newspeoplefor developersdocumentationdownloads

nTclServer
[Scripting Support]

Overview

nTclServer is one of the script server class sitting on top of Tcl/Tk. It uses the Scriptics Tcl 8.x interpreter core and gives us variables, control flow, math expressions, platform independent GUIs.

Commands

  • new classname path
    Create a new object of the specified class at the specified path in the NOH. Returns true on success and nil on failure.

    example:
    new 'ntransformnode' 'tm'
    new 'nd3d9server' '/sys/servers/gfx'
    

  • delete path
    Delete the NOH object at the specified location in the NOH. Returns true on success and nil on failure.

    example:
    delete '/usr/scene/myobject'
    

  • sel path
    Set the current working directory of the NOH to the specified path. Returns true on success and nil on failure.

    example:
    sel '/sys/servers/gfx'
    

  • psel
    Returns the full path of the currently selected object.

  • exit
    Exit Nebula. Exit does not return a value.

  • puts string
    Echo the provided string to the Kernel server's log handler chain.(only on Micro TCL)

    example:
    puts 'fish <)))<'<br>
    

  • dir

Return a table containing the names of the children of the current working directory in the NOH.

  • exists path
    RCheck whether object exists. Return "1" if yes, return "0" if no.

  • emit object.signal arg1 arg2 arg3
    Implement signal emission (emit command).
  • post time object.signal arg1 arg2 arg3
    Post signal and commands (post command).

Note:
'emit' and 'post' commands are command for the signal system. See Signal System for the details.

Copyright © 1999-2005 by the contributing authors. Ideas, requests, problems: Send feedback.