Page 1 of 1

Learning Ruby, having an array problem....

Posted: Wed Jan 04, 2017 3:29 am
by fivebythree
I thought I'd ask this here because can't seem to get a response on the SU forum.

The scatter node in standalone requires an array with 4 units I'm curious as to what the 4 are is it X, Y, Z, Uv? SketchUp's location array is only 3 units.

If I'm off base; I'm learning!

Thanks,

Dom

Re: Learning Ruby, having an array problem....

Posted: Wed Jan 04, 2017 9:51 am
by bepeg4d
Hi Dom,
you need a 12 digit matrix 3x4 to correctly convert position rotation and scale of an object in 3D space.
Maybe you can have a look at this Lua script that convert position, rotation,scale, and rotation order in the correct matrix:
viewtopic.php?f=73&t=57719
ciao beppe

Re: Learning Ruby, having an array problem....

Posted: Fri Jan 06, 2017 6:22 pm
by fivebythree
Thanks for the link Bepe!

I'll have a look.