Hi there,
i guess you pros will solve this in a second.
i want a button that creates a camera when i click on it. it should be a free camera with specified position and rotation. i just cant get it...
why does this not work?
button btn22 "create 50° camera" pos:[8,384] width:126 height:24
on btn22 pressed do
Freecamera transform:(matrix3 [1,0,0] [0,0,0] [0,-1,0] [29.8893,1.32263e-006,-30.2583]) name:"camera50" isSelected:on
select $camera50 rotate angleaxis 50 [1,0,0]
it seems there is a syntax problem... but when i apply the same code to 2 different buttons, it works.
like -->
button btn22 "create camera" pos:[8,384] width:126 height:24
on btn22 pressed do
Freecamera transform:(matrix3 [1,0,0] [0,0,0] [0,-1,0] [29.8893,1.32263e-006,-30.2583]) name:"camera50" isSelected:on
button btn23 "50° rotate camera" pos:[8,384] width:126 height:24
on btn23 pressed do
select $camera50 rotate angleaxis 50 [1,0,0]
what am i doing wrong??
i hope you can understand the problem.
thanks very much in advance!!
cheers.