Scaling imported models

Scaling imported models

Postby charlie » 20 Oct 2011, 00:33

How do you scale imported models? Can it be done via Lua?

The reason I ask:

garvek / Godhead {l Wrote}:I had a very stupid idea this night: if TheAncientGoat is there, do you know how to scale the imported models ? A line inside the Lua ? I think it *could* fix the black sphere issue and dramatically improve the rendering with Skybox.
Free Gamer - it's the dogz
Vexi - web UI platform
User avatar
Global Moderator
Posts: 2134
Joined: 02 Dec 2009, 11:56
Location: Manchester, UK

Re: Scaling imported models

Postby TheAncientGoat » 20 Oct 2011, 14:10

You have to scale it in the blend source file, at least that's the only way I know how to do it.
User avatar
Community Moderator
Posts: 518
Joined: 27 Dec 2009, 19:06

Re: Scaling imported models

Postby amuzen » 20 Oct 2011, 14:32

You can scale objects with Object.edit_pose(). However, it requires the model to use animated shaders and doesn't actually scale the model data itself, just the bones of the object. Vertices of models can't really be scaled currently, though it wouldn't be hard to add a function to the scripting API that does it.
User avatar
LoS Moderator
Posts: 327
Joined: 05 Dec 2009, 02:49

Who is online

Users browsing this forum: No registered users and 1 guest