Just a little script... (Blender related)

Announcements, requests and support regarding the Blender Indigo export script
Post Reply
8 posts • Page 1 of 1
User avatar
Borgleader
Posts: 2149
Joined: Mon Jun 16, 2008 10:48 am

Just a little script... (Blender related)

Post by Borgleader » Wed Oct 29, 2008 10:37 am

Hey guys! :)

This is related to Blender only, it has nothing to do with indigo besides the fact that I'll end up rendering the scene with it.

Anyway not that the not clear stuff is out of the way, what I'm looking for is a script that will generate a random X,Y,Z rotation for the object that I select. And if at all possible, generate such a rotation for a selection of multiple objects.

So say I have 3 objects, then it'll create a X1,Y1,Z1 rotation for object 1, and so on for the others.

Help? :) Thank you!

P.S: By generating I mean, calculate and apply. That way I don't have to do it myself.
benn hired a mercenary to kill my sig...

alex22
Posts: 171
Joined: Thu Apr 12, 2007 12:07 pm
Location: Germany

Post by alex22 » Wed Oct 29, 2008 11:02 am

There is a script built into Blender that does that. Select the Objects, click on "Object" next to "Object mode" button and go to Scripts. Its named "Randomize Loc Size Rot". There you can set the maximum amount of change (for example 90 in rotation means up to +-90 degrees) and the axis to use it on.

User avatar
Kram1032
Posts: 6649
Joined: Tue Jan 23, 2007 3:55 am
Location: Austria near Vienna

Post by Kram1032 » Wed Oct 29, 2008 11:10 am

(+ location + size ;) )

User avatar
Borgleader
Posts: 2149
Joined: Mon Jun 16, 2008 10:48 am

Post by Borgleader » Wed Oct 29, 2008 11:34 am

Oh wow that worked very nice, thanks :)
benn hired a mercenary to kill my sig...

User avatar
Pinko5
Posts: 497
Joined: Mon Feb 19, 2007 8:15 pm
Location: Italy

Post by Pinko5 » Wed Oct 29, 2008 8:25 pm

where can I download it???
Tnx in advance
Luca. ;)

User avatar
Kram1032
Posts: 6649
Joined: Tue Jan 23, 2007 3:55 am
Location: Austria near Vienna

Post by Kram1032 » Wed Oct 29, 2008 10:24 pm

read again, Luca ;)
It's already included :)
alex22 wrote: Select the Objects, click on "Object" next to "Object mode" button and go to Scripts. Its named "Randomize Loc Size Rot".

User avatar
Pinko5
Posts: 497
Joined: Mon Feb 19, 2007 8:15 pm
Location: Italy

Post by Pinko5 » Wed Oct 29, 2008 11:34 pm

:oops: :oops: :oops: ok tnx Kram.....i find it
Luca. :lol:

User avatar
Borgleader
Posts: 2149
Joined: Mon Jun 16, 2008 10:48 am

Post by Borgleader » Thu Oct 30, 2008 12:22 am

Kram1032 wrote:read again, Luca ;)
It's already included :)
alex22 wrote: Select the Objects, click on "Object" next to "Object mode" button and go to Scripts. Its named "Randomize Loc Size Rot".
:lol: rofl Although is it me, or if you use the move part of it, it moves the vertices of the object/mesh but not its center?
benn hired a mercenary to kill my sig...

Post Reply
8 posts • Page 1 of 1

Who is online

Users browsing this forum: No registered users and 4 guests