MultiCopy

About Truespace Archives

These pages are a copy of the official truespace forums prior to their removal somewhere around 2011.

They are retained here for archive purposes only.

MultiCopy // Scriptorium

1  |  

Post by Wigand // Dec 10, 2008, 11:15am

Wigand
Total Posts: 462
pic
Here is a script to copy and move an object by a formula.

A scale function is still missing, also a rotation function for

the object itself or a look at.


See it as a competition . Who can find the coolest formulas?


I show a formula to make a circle, useful to create a watch.

Who is the next formula builder?





Maybe someone can tell me

what these displacement around xyz mean:


HRESULT IRiWidgets::Scale ( [in] BSTR bszSelection,

[in] VARIANT fscx,

[in] VARIANT fscy,

[in] VARIANT fscz,

[in] VARIANT fshxy,

[in] VARIANT fshxz,

[in] VARIANT fshyz,

[in] VARIANT fWx,

[in] VARIANT fWy,

[in] VARIANT fWz

)


Scale script command wrapper for widget Scale actions.



Parameters:

bszSelection [in] Specifies selected nodes.

fscx [in] Scale around X axis.

fscy [in] Scale around Y axis.

fscz [in] Scale around Z axis.

fshxy [in] Shear in xy.

fshxz [in] Shear in xz.

fshyz [in] Shear in yz.

fWx [in] Displacement around X axis.

fWy [in] Displacement around Y axis.

fWz [in] Displacement around Z axis.

Post by transient // Dec 11, 2008, 1:15am

transient
Total Posts: 977
pic
That's potentially very cool, I'll have a better look on the weekend.:)

Post by Wigand // Dec 11, 2008, 8:55am

Wigand
Total Posts: 462
pic
Some examples:

Post by Wigand // Dec 11, 2008, 8:57am

Wigand
Total Posts: 462
pic
And more :

Post by trueBlue // Dec 11, 2008, 9:11am

trueBlue
Total Posts: 1761
pic
Wow that is really amazing. Would be cool if these formulas where available from a Drop Down Combo Control. Or maybe some preset buttons. Also perhaps having the items 3D Encapsulated when created.

Post by Wigand // Dec 11, 2008, 10:18am

Wigand
Total Posts: 462
pic
Thank you trueBlue. I know you have much experience with such things (Dropdown etc.)

Feel free to use my script as a guideline to implement

your ideas. I already thought about snapshot-presets. And very important

encapsulation, so it would be easier to delete all these created objects.


Still missing scaling and rotation.

Post by Norm // Dec 12, 2008, 9:58am

Norm
Total Posts: 862
pic
Would be neat to move a single object along some of these paths.
Pretty neat stuff :)
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2020. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn