Learning Ruby, having an array problem....

SketchUp Integrated Plugin (Integrated Plugin maintained by OTOY)
Post Reply
User avatar
fivebythree
Licensed Customer
Posts: 231
Joined: Tue Jun 10, 2014 2:43 pm
Location: Toronto, CAN
Contact:

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
STANDALONE+STUDIO WIN11PRO | RTX3090 | XEON 4210 20 CORE | 96GBRam
User avatar
bepeg4d
Octane Guru
Posts: 10326
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

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
User avatar
fivebythree
Licensed Customer
Posts: 231
Joined: Tue Jun 10, 2014 2:43 pm
Location: Toronto, CAN
Contact:

Thanks for the link Bepe!

I'll have a look.
STANDALONE+STUDIO WIN11PRO | RTX3090 | XEON 4210 20 CORE | 96GBRam
Post Reply

Return to “SketchUp”