Nebula2 3DS Max Expose Commands Reference
@section NMaxExposeRefCommands CommandsAll nmaxexpose commands can be tested on maxscript listener. You can find it where Utility Command Panel > MaxScript > Open Listener menu in 3DSMax.
- new "classname" "path"
Create a new object of the specified class at the specified path in the NOH. Returns object name on success and empty string on failure.
example:obj = nebula2.new "nroot" "usr/entity"
- delete "path"
Delete the NOH object at the specified location in the NOH. Returns true on success and false on failure.
example:nebula2.delete "foo"
- dir()
Return a array containing the names of the children of the current working directory in the NOH.
- sel "path"
Set the current working directory of the NOH to the specified path. Returns current selected object name on success and empty string on failure.
example:sel "/usr/scene"
- lookup "path"
Return object name if there's the object in given path.
- nprint "message"
Put message on Nebula's log file (if it exist) and listener.
- call "command" "arguments"
Execute the command given by command on the currently selected object in the NOH. It also can be executed with given path and command. A command which doesn't have any argument(void type) must be provided empty array.
An arguments should be provided by maxscript array type.
- Note:
-
There's no way to execute call command with no argument even the command does not have any arguments. You should provide empty array in that case.
call ".saveas" "foo.n2" call "/usr/entity.saveas" "foo.n2" call ".getcmds" #()
- callv "command"
Synonym for call command except it takes no arguments. It is convenient when you call void type of command.
example:callv ".getcmds"