Forum: Poser - OFFICIAL


Subject: Python script to scatter props around a scene?

ranman38 opened this issue on Feb 04, 2013 · 34 posts


3doutlaw posted Tue, 05 February 2013 at 7:14 AM

OK, so the first field, you have to select a prop (it does not use the selected prop in the scene, it will just say invalid distance or something)

For the other fields I put (this is using version 3 above):

Max x and z Tran in Poser - 25

Max x and z Tran in Poser - 10

Number of - 10

I did get 10 objects, but the first one was at x=1526.6, z=1382.7...all of them were way far away.

I was thinking they would be constrained to between 10 and 25?

I tried similar with version 2, and got the output below:

Starting prop generation ...

Prop #11 loaded
Attempt 0: x,z = -491,-495, block = (-5, -5)
Positioned at -4.79651162791, -4.75775193798
Rotated to 41 degrees

Prop #12 loaded
Attempt 0: x,z = -498,-489, block = (-5, -5)
Attempt 1: x,z = -485,-496, block = (-5, -5)
Attempt 2: x,z = -497,-496, block = (-5, -5)
Attempt 3: x,z = -493,-490, block = (-5, -5)
Attempt 4: x,z = -493,-489, block = (-5, -5)
Attempt 5: x,z = -491,-497, block = (-5, -5)
Attempt 6: x,z = -486,-488, block = (-5, -5)
Attempt 7: x,z = -494,-492, block = (-5, -5)

--- GIVING UP!! ---

Analysis of prop generation:
Block (-5, -5) : Blade_uvm_1
Max dist =  25
Min dist =  10
Num of copies =  10