-
Notifications
You must be signed in to change notification settings - Fork 9
/
max.txt
55 lines (44 loc) · 1.39 KB
/
max.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
1 - Show model meshe file infos
> [modelname].dump.load()
> [modelname].dump.show()
> [modelname].dump.unload()
2 - Create and remove model instance
> [modelname].view.load(<entity_id>)
> [modelname].view.load(<entity_id>, {x = <value>, y = <value>, z = <value>})
> [modelname].view.unload(<entity_id>)
3 - Select model instance target
> model.target = <entity_id>
4 - Move model instance
> model.move.posx()
> model.move.posy()
> model.move.posz()
> model.move.rotx()
> model.move.roty()
> model.move.rotz()
> model.move.scalex()
> model.move.scaley()
> model.move.scalez()
> model.move.scalexyz()
> model.move.resetpos()
> model.move.resetrot()
> model.move.resetscale()
> model.move.setpos(<entity_id>, <x>, <y>, <z>)
5 - Model animations
> model.anims.dump()
> model.anims.run(<anim_index>)
> model.anims.runloop(<anim_index>)
> model.anims.rand()
> model.anims.stop()
6 - Environnment
> model.camera.speed = <speed>
> model.env.setgravity(<bool>)
> model.env.setgravitydir(<x>, <y>, <z>)
> model.env.setbkcolor(<r>, <g>, <b>)
> model.env.fog.setdensity(<density>)
> model.env.fog.setcolor(<r>, <g>, <b>)
> model.env.light.setdir(<x>, <y>, <z>)
> model.env.ambientlight.setcolor(<r>, <g>, <b>)
> model.env.light.setstate(<bool>)
> model.env.light.setcolor(<r>, <g>, <b>)
7 - Scene content
> model.printscenelist()