Hi guys, i need some help.
Imagine a have a 1x1x1 cube.. what i need to do is using jscript resize it to a specific size.. In the same way if i open the info panel and i set 2.4x2.5x5.5
Anyone knows a way to set the dimensions of an object from script??
Thanks in advance
Scripting Help
-
Prodigy
- Site Admin
- Posts: 957
- Joined: 21 May 2009, 14:46
- Type the number ten into the box: 0
- Location: Uruguay
Scripting Help
๑۩۞۩๑ prodigy ๑۩۞۩๑
-
ChMar
- Petty Officer Second Class
- Posts: 33
- Joined: 24 Jun 2009, 23:31
Re: Scripting Help
Code: Select all
Node.Select(Space.CurrentScene() + "/Cube")
Widgets.Scale(Space.CurrentScene() + "/Cube",[b]2.500[/b],1.000,1.000,0.000,0.000,0.000,4.772,0.000,0.000);
Widgets.Scale(Space.CurrentScene() + "/Cube",1.000,[b]2.400[/b],1.000,0.000,0.000,0.000,0.000,-5.083,0.000);
Widgets.Scale(Space.CurrentScene() + "/Cube",1.000,1.000,[b]5.000[/b],0.000,0.000,0.000,0.000,0.000,-2.000);