what is 2nd parameter for Node.Create Mouse Drag?

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.

what is 2nd parameter for Node.Create Mouse Drag? // Scriptorium

1  |  

Post by frootee // Sep 20, 2007, 2:59am

frootee
Total Posts: 2667
pic
Hi folks.

What is the 2nd parameter for this:


Node.Create('Widgets Package/Mouse MDrag', '');


where I have empty space in the 2nd parameter here.


Is this the Owner object for the created widget?



yes it is... nevermind.


thanks,


Froo

Post by frootee // Sep 20, 2007, 3:14am

frootee
Total Posts: 2667
pic
macro for mouse move/drag:


// Macro captured 09/20/07 09:15:13

function Execute(params)

{

sel = Node.Selection();

for (i = 0; i < Node.SelectionLength(sel); i++)

{Node.Select(Node.SelectionGetAt(sel, i)); ApplyMacro(Node.SelectionGetAt(sel, i))};

}


function ApplyMacro(selectedObj_)

{

Widgets.Move(selectedObj_,-6.075,0.000,1.406);

}

Post by 3dvisuals dude // Sep 20, 2007, 7:34am

3dvisuals dude
Total Posts: 1703
pic
macro for mouse move/drag:

// Macro captured 09/20/07 09:15:13
function Execute(params)
{
sel = Node.Selection();
for (i = 0; i < Node.SelectionLength(sel); i++)
{Node.Select(Node.SelectionGetAt(sel, i)); ApplyMacro(Node.SelectionGetAt(sel, i))};
}

function ApplyMacro(selectedObj_)
{
Widgets.Move(selectedObj_,-6.075,0.000,1.406);
}


Nice peice of code... very handy. Thanks for that!

Mark
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn