0
$\begingroup$

I'd like to write a script that places 3 objects of my choosing in random places in all xyz dimensions (with constant size, but varying rotations and locations) and I'm wondering where I should go to learn about this. E.g. if I want my 3 objects to be a sphere, cube, and cube, I'd like to be able to generate and save x number of random configurations of these objects.

$\endgroup$
4
  • 1
    $\begingroup$ Related blender.stackexchange.com/questions/95616/… $\endgroup$
    – batFINGER
    Commented Mar 4, 2019 at 7:13
  • 2
    $\begingroup$ Welcome to bse. IMO best place to learn this stuff is right inside blender using the python console. Type in C.object.location = (1, 2, 3) for example. Break the problem down, generating objects, setting object rotation / location, generating random numbers. A quick search on "random location" here produced link above. Asking for tutorials links et al is somewhat open ended. $\endgroup$
    – batFINGER
    Commented Mar 4, 2019 at 7:23
  • $\begingroup$ Thanks for your response. I was just wondering if there was any documentation or textbook or anything sort of definitive to give me an overview on scripting for blender. Your advice is already helpful, thank you $\endgroup$
    – joe
    Commented Mar 4, 2019 at 13:08
  • $\begingroup$ docs.blender.org/api/current $\endgroup$
    – batFINGER
    Commented Mar 4, 2019 at 13:10

0

You must log in to answer this question.

Browse other questions tagged .