[SOLVED] Select multiple nodes with Jscript - How?
Posted: 08 Jul 2014, 05:16
I have been studying some selection things and with the help of Stan, managed to use and implement a recursive selection system.
But then I had another brilliant idea to record a selection of joints or objects with a click of a button, creating a "keyset" which trueSpace is deficient in. It is difficult to select or attribute what one wants to record and for many objects/controllers, it's imperative to try create branches of animation so it's easier to blend and create animation libraries.
So.. in theory I ran the macro recorder, but it doesn't reproduce the multiple object selection that I do manually...
I assume one uses the following to select singular nodes but how would you make it select another and another? A series of nodes I would like to define (absolute paths are valid this time around)
This node works with one object, how do I add another?
But then I had another brilliant idea to record a selection of joints or objects with a click of a button, creating a "keyset" which trueSpace is deficient in. It is difficult to select or attribute what one wants to record and for many objects/controllers, it's imperative to try create branches of animation so it's easier to blend and create animation libraries.
So.. in theory I ran the macro recorder, but it doesn't reproduce the multiple object selection that I do manually...
Code: Select all
function Execute(params)
{
// creating script form for 'Widget:Sequence '
Node.Select(Space.CurrentScene() + "/Cube")
// creating script form for 'Widget:Sequence '
//Widgets.ActivateDefaultWidget("/Widgets/Select", Space.CurrentScene() + "/Cube;/Project/Space 3D, 45/Cube, 1")
// creating script form for 'Widget:Sequence '
//Widgets.ActivateDefaultWidget("/Widgets/Select", Space.CurrentScene() + "/Cube;/Project/Space 3D, 45/Cube, 1;/Project/Space 3D, 45/Cube, 2")
}
Code: Select all
Node.Select()