Notes and Scene View for workspace

User avatar
trueBlue
Captain
Posts: 5214
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Notes and Scene View for workspace

Post by trueBlue »

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
User avatar
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

Post by clintonman »

trueBlue 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
I don't see any duplicate toolbars. It does look like it's running twice, so the line
ScriptObject.Execute("Scripts/CustomCommands/WebServer/Set WebServerFrame");
isn't needed in any of the open buttons.
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5214
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Notes and Scene View for workspace

Post by trueBlue »

Thanks, that seems to stop the duplicate toolbar
User avatar
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

Post by clintonman »

ParentMove01.jpg

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.

ParentMove02.jpg

Second image shows selection, first the Cone then the Torus.

ParentMove03.jpg

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.
Clinton Reese

http://clintons3d.com
User avatar
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

Post by clintonman »

Nice, got parenting and unparenting working fully.

ParentMoveDesc01.jpg

Before parenting the Cone is selected then the Torus inside of the Object group is added to the selection.


ParentMoveDesc02.jpg

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.
Clinton Reese

http://clintons3d.com
User avatar
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

Post by clintonman »

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.
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5214
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Notes and Scene View for workspace

Post by trueBlue »

Have you tried Node.Move(var, var) versus Node.Copy(var, var)?
Node.Move(Node.FirstSelected(), Space.CurrentScene() +"/Sphere/")
User avatar
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

Post by clintonman »

trueBlue wrote: 18 Jul 2022, 16:12 Have you tried Node.Move(var, var) versus Node.Copy(var, var)?
Node.Move(Node.FirstSelected(), Space.CurrentScene() +"/Sphere/")
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.
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5214
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Notes and Scene View for workspace

Post by trueBlue »

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 :shock:
User avatar
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

Post by clintonman »

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.
Clinton Reese

http://clintons3d.com
Post Reply