Gotcha
I cannot find any code that would open the duplicate toolbar
I do notice that the StartWebServer script is connected to the Set WebServerFrame script
The Open button script from the WebServer's Sene View URL, calls both scripts
This seems to me, that the Set WebServerFrame script is running twice
Suggestions?
Disregard lines 5, 6, and 7
Notes and Scene View for workspace
- clintonman
- Captain
- Posts: 5429
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Notes and Scene View for workspace
I don't see any duplicate toolbars. It does look like it's running twice, so the linetrueBlue wrote: ↑12 Jul 2022, 15:28 Gotcha
I cannot find any code that would open the duplicate toolbar
I do notice that the StartWebServer script is connected to the Set WebServerFrame script
The Open button script from the WebServer's Sene View URL, calls both scripts
This seems to me, that the Set WebServerFrame script is running twice
Suggestions?
Open button script.png
Disregard lines 5, 6, and 7
ScriptObject.Execute("Scripts/CustomCommands/WebServer/Set WebServerFrame");
isn't needed in any of the open buttons.
Re: Notes and Scene View for workspace
Thanks, that seems to stop the duplicate toolbar
- clintonman
- Captain
- Posts: 5429
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Notes and Scene View for workspace
Ran into a problem during parenting of a scene object to a group member. This first image shows a Cone that I want to parent to the Torus inside the Object group.
Second image shows selection, first the Cone then the Torus.
Third is after parenting. The Cone is moved into the Object group and parented to the Torus. So it works for a single object. The other option is to parent without moving the Cone. This creates an invisible link between the two, but it actually works, it behaves like it's been parented. The currently released and UU versions of the parenting script will just create the invisible link.
The last thing to fix is for the case where say the Cone is the parent of another item. In that case the other item plus any of it's children will need to be moved and the parenting links recreated inside the group object.
- clintonman
- Captain
- Posts: 5429
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Notes and Scene View for workspace
Nice, got parenting and unparenting working fully.
Before parenting the Cone is selected then the Torus inside of the Object group is added to the selection.
After parenting all the descendant nodes move with the Cone.
Next up is groups. Adding items to groups, removing items from groups and moving items between groups.
Before parenting the Cone is selected then the Torus inside of the Object group is added to the selection.
After parenting all the descendant nodes move with the Cone.
Next up is groups. Adding items to groups, removing items from groups and moving items between groups.
- clintonman
- Captain
- Posts: 5429
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Notes and Scene View for workspace
Latest update is that it can move and copy(drag and drop) into 2D and 3D groups. Updated the panel buttons with auto start for the web server and does extra check for the rsx plugin. Both changes are from the unofficial updates.
The parenting and unparenting code has been moved into a Global Function Set so it exists in one location. The old html scene view, the new html scene view and the toolbar buttons will all use the same code. So the toolbar button "Pu" has been altered to use the new parenting code in the function set.
The visibility functions need to be updated to match the UU way of visibility control and need to do a bunch of testing for incompatible actions like trying to add an object to a 3d group as a 3d object when it is not a 3d object.
NURBS processing is missing from a couple of places. And I just remembered I forgot to test moving an object from one group into another.
The parenting and unparenting code has been moved into a Global Function Set so it exists in one location. The old html scene view, the new html scene view and the toolbar buttons will all use the same code. So the toolbar button "Pu" has been altered to use the new parenting code in the function set.
The visibility functions need to be updated to match the UU way of visibility control and need to do a bunch of testing for incompatible actions like trying to add an object to a 3d group as a 3d object when it is not a 3d object.
NURBS processing is missing from a couple of places. And I just remembered I forgot to test moving an object from one group into another.
Re: Notes and Scene View for workspace
Have you tried Node.Move(var, var) versus Node.Copy(var, var)?
Node.Move(Node.FirstSelected(), Space.CurrentScene() +"/Sphere/")
Node.Move(Node.FirstSelected(), Space.CurrentScene() +"/Sphere/")
- clintonman
- Captain
- Posts: 5429
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Notes and Scene View for workspace
I tried it but it did weird things. I think it removed all internal nodes from an object. Maybe it only works for nodes that have no sub-objects?
If it works for you I'll need to double check it.
Re: Notes and Scene View for workspace
Your right!
I originally tested moving a jScript node which worked as expected
Edit: If you move an object to somewhere that does not exist, it is gone from existence
There is no undo!
Very Strange command
I originally tested moving a jScript node which worked as expected
Edit: If you move an object to somewhere that does not exist, it is gone from existence
There is no undo!
Very Strange command
- clintonman
- Captain
- Posts: 5429
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Notes and Scene View for workspace
Ran into all sorts of bugs and omissions while testing. I thought I might finish this weekend but it's going to take a little bit longer.
Got the delete nodes working with multiple selections and optionally parenting structures.
When creating groups it asks for a name for the group, defaulting to a random name.
I split the parent/unparent icon button so shortcuts can be defined and because the parenting needed an options panel for invisible parenting. I figure the shortcuts will be p to parent and shift+p to unparent. I also created new icon images for adding to a group and adding to a 3D group. They work the same as parenting in that the last item selected is the destination group.
Got the delete nodes working with multiple selections and optionally parenting structures.
When creating groups it asks for a name for the group, defaulting to a random name.
I split the parent/unparent icon button so shortcuts can be defined and because the parenting needed an options panel for invisible parenting. I figure the shortcuts will be p to parent and shift+p to unparent. I also created new icon images for adding to a group and adding to a 3D group. They work the same as parenting in that the last item selected is the destination group.