Scripting Help

Smart people ~ Great Scripts
Post Reply
User avatar
Site Admin
Posts: 915
Joined: 21 May 2009, 14:46
Type the number ten into the box: 0
Location: Uruguay

Scripting Help

Post by Prodigy »

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
๑۩۞۩๑ prodigy ๑۩۞۩๑

Petty Officer Second Class
Posts: 33
Joined: 24 Jun 2009, 23:31

Re: Scripting Help

Post by ChMar »

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);
use Widgets.Transform so you don't have to obtain the matrix connector and modify it

Post Reply