New Script installers ERROR

free scripts, plugins, models, textures
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: New Script installers ERROR

Post by trueBlue »

Thanks Clinton!

Test3
Do I need to test the Unofficial Update installed check or are you sure that works as expected?
Actually I could rename the Hide (cute) to check it out.

Opened Test3 in the Default layout Max screen with all of the Test2 toolbars opened.
* The C3D dock closed, and all of the other toolbars stayed open.
I think that the C3D dock should open again in it's default location.
Not sure about the other toolbars, maybe close?
* Think the Log message should change to C3D Dock? Not button. pic1

After installing the Clinton Toolbar or in this case the AlignmentDistributionNOT Autoload
* Are you going to remove the NT and TB buttons from the Clinton Toolbar within their installers? Would make the it shorter.

After installing the Curves and Toolbar Manager in that order. pic2
* Curves and Toolbar Manager's position were swapped. Fixed by selecting their button on the C3D dock.
* Do you really want the Toolbar Manager's Help panel to open on install with the SCARY Log View window?

Final defaut position and the installation experience. pic3
* For none Link Editor users, and for a better user experience, I would strongly suggest that all of your installers include a popup panel and that you delete the installer after installation, especially with the Curves toolbar as it leaves objects until you delete that installer . It would be an easy fix to your installers the way there are setup to date. I would be willing to do that for you. It is a pretty easy modification to your existing installers.
What would be really cool, is if you could save to a Clinton Toolbar library, and or that could be added later.


I really love how all the toolbars move in their default positions when you drag the 2D/4D window up and down.
I do not love their default position as they interfer with 3D Space. I strongly suggest that their default location be to the left above the Object toolbar's fully opened tools.

Test opening a new view window from the top titlebar toolbar, and move all of the toolbars there, then drag the window around, and then close the window. Kind of cool!

I going to keep testing this version and check it out throughly.

And the following:
Toolbar installers open the c3d toolbar, their toolbar and the main toolbar, non-toolbar installs only open the main toolbar, see alignment script.
Install opens toolbars to " Frame, 1" if it is available, usually the main 3d window
Fixed problem with toolbar manager installer - dont remember the details.
Attachments
3rdTest Log info.PNG
3rdTest Log info.PNG (1.26 KiB) Viewed 4439 times
3rdTest all toolbar placement.PNG
3rdTest using the Defult layout with all toolbars opened.PNG
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

trueBlue wrote: 04 Feb 2018, 17:47 ...
Final defaut position and the installation experience. pic3
* For none Link Editor users, and for a better user experience, I would strongly suggest that all of your installers include a popup panel and that you delete the installer after installation, especially with the Curves toolbar as it leaves objects until you delete that installer . It would be an easy fix to your installers the way there are setup to date. I would be willing to do that for you. It is a pretty easy modification to your existing installers.
What would be really cool, is if you could save to a Clinton Toolbar library, and or that could be added later.
...
No thanks, the user can take responsibility for deleting and having popups wouldn't work well with the batch installer.

trueBlue wrote: 04 Feb 2018, 17:47 ...
Opened Test3 in the Default layout Max screen with all of the Test2 toolbars opened.
* The C3D dock closed, and all of the other toolbars stayed open.
I think that the C3D dock should open again in it's default location.
Not sure about the other toolbars, maybe close?
* Think the Log message should change to C3D Dock? Not button. pic1

After installing the Clinton Toolbar or in this case the AlignmentDistributionNOT Autoload
* Are you going to remove the NT and TB buttons from the Clinton Toolbar within their installers? Would make the it shorter.
...
Yes, I want the c3d toolbar to close. If the persistent is being installed again then likely many other items will need to be re-installed. Ideally, c3d install should only happen once. Other toolbars remain because they still work. Changed install complete wording and set to use alert box instead of log view since this will not be part of the batch installer.
NT and TB buttons will remain in the Clinton toolbar
trueBlue wrote: 04 Feb 2018, 17:47 ...
After installing the Curves and Toolbar Manager in that order. pic2
* Curves and Toolbar Manager's position were swapped. Fixed by selecting their button on the C3D dock.
* Do you really want the Toolbar Manager's Help panel to open on install with the SCARY Log View window?
...
Fixed position of toolbars also parent window for main toolbar was not set - fixed and now other windows will cover the toolbar
I will do the opposite and open the help panel and not open the log view
Clinton Reese

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

Re: New Script installers ERROR

Post by trueBlue »

Red Toolbox has a little Easter Egg in the LMB. :lol:
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: New Script installers ERROR

Post by trueBlue »

After reinstalling C3D dock with the other 3 toolbars opened, the TB and UT buttons are missing. You may have already mentioned this so disregard if so.
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

trueBlue wrote: 04 Feb 2018, 19:28 Red Toolbox has a little Easter Egg in the LMB. :lol:
???
Clinton Reese

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

Re: New Script installers ERROR

Post by trueBlue »

Both of them have LMB = RsTool.OpenWebPage("united3dartists.com/forum/viewtopic.php?t=3732");
Was checking the CheckVersion just prior to that. And installing the C3D installer several times. Maybe Sync workspavenav? I have not clue.
Have not even been near those buttons for several days,
Your C3D installer has the correct buttons.
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

trueBlue wrote: 04 Feb 2018, 21:17 Both of them have LMB = RsTool.OpenWebPage("united3dartists.com/forum/viewtopic.php?t=3732");
Was checking the CheckVersion just prior to that. And installing the C3D installer several times. Maybe Sync workspavenav? I have not clue.
Have not even been near those buttons for several days,
Your C3D installer has the correct buttons.
Oh yeah :lol: , forgot about that. Red button is altered if the unofficial update is not installed. Did you remember to put the hide node back after testing?
Clinton Reese

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

Re: New Script installers ERROR

Post by trueBlue »

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

Re: New Script installers ERROR

Post by trueBlue »

Curious, did you change the name of your Frame for the ClintonsToolbar for these test?
Was it not ClintonToobarFrame?
I was altering the script for the CTR installer when I noticed.
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

trueBlue wrote: 05 Feb 2018, 00:02 Curious, did you change the name of your Frame for the ClintonsToolbar for these test?
Was it not ClintonToobarFrame?
I was altering the script for the CTR installer when I noticed.
Must have got confused, it looks like it should be ClintonToolbarFrame
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

Semi final installer versions.
Truly persistent, toolbar prototype and widgets saved to disk.
Fixed the frame name to "ClintonToolbarFrame"
fixed c3d installer restore button - was only restoring original widgets file
Found, created and fixed more bugs.

Edit: just found one more frame name oversight...

Edit: fixed and ready for testing
Attachments
3toolbars_test4.zip
(714.9 KiB) Downloaded 182 times
Clinton Reese

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

Re: New Script installers ERROR

Post by trueBlue »

First of all I want to commend you for your Alignment Distribution project!!! I took a peak at your Align script (Bible) and was amazed at your skills. You must be a Mathematical Genius/Developer! :worship:

Before I go forward with Test4, I would like to ask:
With "Install opens toolbars to " Frame, 1" if it is available, usually the main 3d window"
I did not see the window being selected, or in focus.
Was that to be expected?
* Suggestion: As part of your initial instructions, recommend that the user creates a New Scene before any installations?
This would insure that it is Frame, 1
Thinking down the road with your mass installer, without knowing how that is going to work, it sounds like there is going to be a lot of items loaded into the Link Editor?

Is there anything special you would like me to test in test4 ?
I am going to uninstall tS761, install the original version so that I can capture all of the prototype's IDs, and document a few things.
So I can start testing Test4 there if needed?
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

trueBlue wrote: 05 Feb 2018, 16:51 First of all I want to commend you for your Alignment Distribution project!!! I took a peak at your Align script (Bible) and was amazed at your skills. You must be a Mathematical Genius/Developer! :worship:

Before I go forward with Test4, I would like to ask:
With "Install opens toolbars to " Frame, 1" if it is available, usually the main 3d window"
I did not see the window being selected, or in focus.
Was that to be expected?
* Suggestion: As part of your initial instructions, recommend that the user creates a New Scene before any installations?
This would insure that it is Frame, 1
Thinking down the road with your mass installer, without knowing how that is going to work, it sounds like there is going to be a lot of items loaded into the Link Editor?

Is there anything special you would like me to test in test4 ?
I am going to uninstall tS761, install the original version so that I can capture all of the prototype's IDs, and document a few things.
So I can start testing Test4 there if needed?
The installers run from the link editor so it would have focus so installer checks for the " Frame, 1" and uses it instead. This is only during installation. Pressing the "open toolbar" buttons uses the focused window.

The mass installer looks in a specific library, loads installers outside of the scene, they run automatically and delete themselves when install is complete. Each run updates the log view so the user knows when all the installers have finished.
http://clintons3d.com/plugins/truespace ... aller.html

As far as testing, just try to break it and note any problems or observations.
Clinton Reese

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

Re: New Script installers ERROR

Post by trueBlue »

Did quick test with tS7.61. W/Update before I reinstall everything.
Same issue as before with reinstalling the C3D with 2 toolbars installed and then tested reinstalling the TB tools.
C3D installs a little right of the default location, not shown. Selecting the Gold TB fixes the location back to the left default location, shown.
C3D loses the buttons from the previous toolbars installations not shown.
Then the placement of the toolbars go to the TB button
Test4 Reinstalling C3D and tB tools.PNG
Test4 Reinstalling C3D and tB tools.PNG (21.11 KiB) Viewed 4060 times
Here's another example where the TB tools are hidden under the Curves after reinstalling the Curves.
Test4 Reinstalling C3D and Curves.PNG
Test4 Reinstalling C3D and Curves.PNG (30.31 KiB) Viewed 4056 times
.


Are you checking if any toolbars exist before installing any of them?

If not maybe it would be easier to eliminate the C3D toolbar all together and just use the Gold button to open the Clinton toolbar?
And add your C3D, Curves and Animation toolbar buttons to the Clinton Toolbar if they do not exist?
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: New Script installers ERROR

Post by trueBlue »

Have not figured which one of the installers is doing it yet but I have duplicate Widgets.
I have all the Test4 toolbars installed.
Then I Reset the Default Context.
I now have duplicate Widgets.
Restore Widgets and Toolbars seems to work as expected.
Update:
C3D installed and Reset, okay.
C3D, Curves installed, and Reset, duplicate Widgets.
Curves install seems to take a little longer to install in this version.
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: New Script installers ERROR

Post by trueBlue »

FYI... with regards to the Unofficial Update overwriting your installations, I believe it is just the Widgets.RsObj and Toolbars.RsObj that affect your project?. With the Unofficial Update there is two ways to extract it, by selecting Replace All, or go through the process of replacing only the files or maybe just folders you want to replace. When I extract it later, I will write down the steps.
Nevertheless when I finish the next update I will include your clintonobjects, Toolbars, and Widgets, so you do not have to go through all of this. Or we could make one that just updates the files for your project. Seems like an easier way to do it verses from script.
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

trueBlue wrote: 06 Feb 2018, 00:34 Have not figured which one of the installers is doing it yet but I have duplicate Widgets.
I have all the Test4 toolbars installed.
Then I Reset the Default Context.
I now have duplicate Widgets.
Restore Widgets and Toolbars seems to work as expected.
Update:
C3D installed and Reset, okay.
C3D, Curves installed, and Reset, duplicate Widgets.
Curves install seems to take a little longer to install in this version.
I see it. The order got switched around in the installer. It empties the layer 2 widgets, restores the layer 2 widgets then saves the widgets. Order should be empty, save widgets, restore.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

trueBlue wrote: 06 Feb 2018, 01:05 FYI... with regards to the Unofficial Update overwriting your installations, I believe it is just the Widgets.RsObj and Toolbars.RsObj that affect your project?. With the Unofficial Update there is two ways to extract it, by selecting Replace All, or go through the process of replacing only the files or maybe just folders you want to replace. When I extract it later, I will write down the steps.
Nevertheless when I finish the next update I will include your clintonobjects, Toolbars, and Widgets, so you do not have to go through all of this. Or we could make one that just updates the files for your project. Seems like an easier way to do it verses from script.
Yep, for built in stuff just the widgets and toolbars files are affected. All else is in the clintonobjects.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

trueBlue wrote: 05 Feb 2018, 21:04 Did quick test with tS7.61. W/Update before I reinstall everything.
Same issue as before with reinstalling the C3D with 2 toolbars installed and then tested reinstalling the TB tools.
C3D installs a little right of the default location, not shown. Selecting the Gold TB fixes the location back to the left default location, shown.
C3D loses the buttons from the previous toolbars installations not shown.
Then the placement of the toolbars go to the TB button
Test4 Reinstalling C3D and tB tools.PNG
Here's another example where the TB tools are hidden under the Curves after reinstalling the Curves.
Test4 Reinstalling C3D and Curves.PNG.


Are you checking if any toolbars exist before installing any of them?

If not maybe it would be easier to eliminate the C3D toolbar all together and just use the Gold button to open the Clinton toolbar?
And add your C3D, Curves and Animation toolbar buttons to the Clinton Toolbar if they do not exist?
I'll remove the c3d toolbar and use the gold button to open the main toolbar. And add the c3d button with left click to restore scripts. And install other toolbar buttons just to the main toolbar. Will set so toolbar open position is fixed instead of relative to the now non-existent c3d toolbar buttons.
Clinton Reese

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

Re: New Script installers ERROR

Post by trueBlue »

Sounds good!
With regards to your Clinton toolbar:
The old path use to be ClintonToolbarFrame/Toolbar, Right? If it would make it easier for you with all your other existing scripts, buttons. etc...
I think you could go back to the same name, all you would have to do is enter Toolbar into the Prototype attribute.
Old.PNG
Old.PNG (5.18 KiB) Viewed 4039 times
Or you could change your present prototype that you have now to the above.
Present.PNG
Present.PNG (5.86 KiB) Viewed 4037 times
I took a look at all the toolbars in TPE, you will notice that all of the toolbars created by the developers all have their nodes named and their Prototype attribute with the same name, no other attributes have names. The other developer's toolbars that have all of their attributes unnamed are not being used in tS7. And the one and only developer's toolbar (PhysMain), that was most likely created first, in the top left corner, has it's ID attribute entered as {F25DD957-48C0-47db-AB21-D2B526A8A2AB}.
Stopping there it's possible to call any toolbar from TPE by it's Prototype attribute name, into WMS. It would also seem that you could Reset any toolbar that is in WMS by the same name, verses by their hidden ID attribute. I think we both have discovered, that ID can change.
The rest of the toolbars in TPE were created by me and have several of their attributes entered with the same name as it's node.
To be continued...
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: New Script installers ERROR

Post by trueBlue »

Something is Wildly wrong!
I suspect it is your Sync workspavenav and or your LMB command for the Gold button.
I was adding a Blue toolbox button to the WorkspaceNav, and saved my Toolbars.RsObj
Now when I select the Gold button it jumps to what looks like your position of one of your toolbars.
In WMS there is your ClintonToolbarDockFrame with the WorkspaceNav toolbar inside.
This has happened a couple of times yesterday and now today.
I applied the Unofficial Update this morning before installing your C3D toolbar once.
Oddly I see the WorkspaceNav being recreated in TPE.

AND...The Gold button moves my Custom toolbar (Red) from my location to yours. :lol:

Working on the Red, Blue, and Gold toolboxes that I want to release with the final update.
I am having the Red Toolbox close the Blue and reopen the Red and visa versa with the Blue Toolbox.
So they switch in the same location. Kind of nice in that you only have one toolbar open at the same time, and do not have to close two toolbars.
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

The id on the toolbar prototype is needed when using the toolbar close command and it's id doesn't change. As far as I can tell the name connector has no effect at all. I'll have to check out those existing prototypes and see differences between virgin and unofficial patched.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

trueBlue wrote: 06 Feb 2018, 19:24 Something is Wildly wrong!
I suspect it is your Sync workspavenav and or your LMB command for the Gold button.
I was adding a Blue toolbox button to the WorkspaceNav, and saved my Toolbars.RsObj
Now when I select the Gold button it jumps to what looks like your position of one of your toolbars.
In WMS there is your ClintonToolbarDockFrame with the WorkspaceNav toolbar inside.
This has happened a couple of times yesterday and now today.
I applied the Unofficial Update this morning before installing your C3D toolbar once.
Oddly I see the WorkspaceNav being recreated in TPE.

AND...The Gold button moves my Custom toolbar (Red) from my location to yours. :lol:

Working on the Red, Blue, and Gold toolboxes that I want to release with the final update.
I am having the Red Toolbox close the Blue and reopen the Red and visa versa with the Blue Toolbox.
So they switch in the same location. Kind of nice in that you only have one toolbar open at the same time, and do not have to close two toolbars.
What does the blue box do?
I'll look for that strangeness but I haven't seen anything like what you describe here.
Clinton Reese

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

Re: New Script installers ERROR

Post by trueBlue »

Your right it looks like the Toolbar,s ID does not change.
I miss spoke, what I meant was we discovered the Frame's WinID changes.
This was in regards to Resetting all of the Toolbars before saving the Toolbar.RsObj
As I mentioned earlier I discovered that the WinID changed when I switched to Model/Workspace.
But I just discovered that my named (MyFrame) did not change.
So it's only when tS7 creates the Frame internally, like Frame, Frame, 1, Frame, 2 that the WinID changes because tS7 recreates the Frame when you switch.
Here is a test with regards to Closing a TOOLBAR by using toolbar commands and and a FRAME using frame commands.
All of these commands work below:
Capture.PNG

Code: Select all

// tS7's WinID {89F6FE6F-B09C-492A-8620-573607EAD712} 
function Execute(params)
{
//Toolbars
WindowsManager.OpenToolbarFromPrototype('PhysMain', 290, 440,-1,-1)	//By Toolbar's Prototype
WindowsManager.CloseToolbar('{F25DD957-48C0-47db-AB21-D2B526A8A2AB}')	//By Toolbar's ID
//Frames
WindowsManager.CloseWindow("/Project/Windows Manager Space/ Frame, 2") //By Frames Path
//Interesting I just discovered that an empty SPACE is needed before /Frame, 2 in order for it to work!
WindowsManager.CloseWindow("{D50E0B38-8B98-4E7F-B417-FDB121134632}")	//By Frame's WinID
//All of the above commands work
So! Naming your frames is a very good idea.
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: New Script installers ERROR

Post by trueBlue »

clintonman wrote: 07 Feb 2018, 15:21 What does the blue box do?
Red = User's toolbox LMB - Open the Red Toolbar RMB - Open the Toolbars preferences
Gold = Clinton's toolbox LMB - Open the Gold Toolbar RMB - Whatever you would like? Maybe a Web Link to our site?
Your C3D button opens your Clinton Toolbar.
Blue = trueBlue's toolbox LMB - Open the Blue Toolbar RMB - Open the Toolbars preferences

Toolbars preferences = Opens a Panel where you can Open & Save each toolbar's buttons & prototype from TPE
The LMB commands were originally setup to snap to the right of WorkspaceNav and still are.

As said previously they are setup to switch toolbars instead of opening in different places.
I may build some LMB command scripts to change how they work.
Default = The way they are now.
Individual = Use a tS7 command to show how they are shown in the pic.
Screen Space. = Saves the whole frame from their last position to disk and then Loads from disk.
Attachments
RGBoxes.PNG
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

trueBlue wrote: 07 Feb 2018, 18:01 ...

Code: Select all

// tS7's WinID {89F6FE6F-B09C-492A-8620-573607EAD712} 
function Execute(params)
{
//Toolbars
WindowsManager.OpenToolbarFromPrototype('PhysMain', 290, 440,-1,-1)	//By Toolbar's Prototype
WindowsManager.CloseToolbar('{F25DD957-48C0-47db-AB21-D2B526A8A2AB}')	//By Toolbar's ID
//Frames
WindowsManager.CloseWindow("/Project/Windows Manager Space/ Frame, 2") //By Frames Path
//Interesting I just discovered that an empty SPACE is needed before /Frame, 2 in order for it to work!
WindowsManager.CloseWindow("{D50E0B38-8B98-4E7F-B417-FDB121134632}")	//By Frame's WinID
//All of the above commands work
...
Yes, it looks like someone at Caligari made a typo, there is one other(I forget which) besides " Frame,2" with the space prefix.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

trueBlue wrote: 07 Feb 2018, 22:31 ...
Gold = Clinton's toolbox LMB - Open the Gold Toolbar RMB - Whatever you would like? Maybe a Web Link to our site?
...
Good idea, but I think maybe have the link go somewhere else since there's already a link to united3dartists from the unofficial update help menu.
Clinton Reese

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

Re: New Script installers ERROR

Post by trueBlue »

Typo I meant your site.
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

trueBlue wrote: 06 Feb 2018, 19:24 Something is Wildly wrong!
I suspect it is your Sync workspavenav and or your LMB command for the Gold button.
I was adding a Blue toolbox button to the WorkspaceNav, and saved my Toolbars.RsObj
Now when I select the Gold button it jumps to what looks like your position of one of your toolbars.
In WMS there is your ClintonToolbarDockFrame with the WorkspaceNav toolbar inside.
...
I see it. Just happened to me. Wildly wrong..., but I see why.

Edit: Actually, I didn't see why, ends up it was a typo Clinton vs Clintons with an s
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

Probably final versions before auto install reactivation.

goldbutton left - open clinton toolbar
goldbutton right - opens a web page
c3d button now inside clinton toolbar, left click restores scripts, right click nothing
curves - fixed duplicate widgets saving
more consistent naming - ClintonToolbar and ClintonToolbarFrame, no more Clintons plural anything
ToolbarPositions.jpg
all toolbars hard coded to specific locations for opening
there is an inconsistency between where the install places the toolbar and where the toolbar buttons place them - not worth fixing
Attachments
3toolbars_test5.zip
(713.68 KiB) Downloaded 186 times
Clinton Reese

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

Re: New Script installers ERROR

Post by trueBlue »

I will try it out.
Where is your is other toolbar going to be placed?
Are you still resetting the toolbars in WMS before saving the Toolbars.RsObj?
With your Get Toolbars Win ID.RsObj the FileMenu should be templates.MainMenu

Code: Select all

templates.MainMenu - {3D528E32-9B9C-4EEF-B73A-0A0561B0B096}  //FileMenu
Attachments
Capture.PNG
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

trueBlue wrote: 08 Feb 2018, 12:31 I will try it out.
Where is your is other toolbar going to be placed?
Are you still resetting the toolbars in WMS before saving the Toolbars.RsObj?
With your Get Toolbars Win ID.RsObj the FileMenu should be templates.MainMenu

Code: Select all

templates.MainMenu - {3D528E32-9B9C-4EEF-B73A-0A0561B0B096}  //FileMenu
Forgot about the resetting toolbars part.
Don't understand "Where is your is other toolbar going to be placed?"

Code: Select all

function Execute(params)
{
	syncPrototype = [];
	syncPrototype["WorkspaceMain"] = 1;
	syncPrototype["WorkspaceMainMenu"] = 1;//file menu
	syncPrototype["WorkspaceNav"] = 1;
	syncPrototype["WorkspaceAnim"] = 1;
	syncPrototype["UnofficialUpdateViewBar"] = 1;
	syncPrototype["LENavigatorBar"] = 1;
	syncPrototype["CustomToolbar"] = 1;
	syncPrototype["ClintonToolbar"] = 1;
	syncPrototype["ClintonsToolbarManagerToolbar"] = 1;
	syncPrototype["templates.MainMenu"] = 1;//modelspace file menu
	syncPrototype["InterpolationToolbar"] = 1;
	syncPrototype["NURBSToolbar"] = 1;

	WinManagerSync("/Project/Windows Manager Space");

}

function WinManagerSync(match, currentNode)
{
	var currentNode = currentNode || "/Project/Windows Manager Space";//default if not defined
	if(Node.ConExists(currentNode, "Prototype")) {
		var prototype = Node.Value(currentNode, "Prototype");
		var frame = Node.Owner(currentNode);
		var winid = Node.Value(frame, "WinID");
		if(prototype == match) {
			System.Trace("sync " + frame);
			System.Trace("sync " + winid);
			WindowsManager.SynchronizeCommand( winid, 4, '', '');//reset toolbar command
			return;
		}
	}
	var childCount = Node.SubObjectCount(currentNode);
	if(childCount == 0) return;
	for(var i = 0; i < childCount; i++) {
		var newNode = currentNode + "/" + Node.SubObject(currentNode, i);
		WinManagerSync(match, newNode);
	}
}
Clinton Reese

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

Re: New Script installers ERROR

Post by trueBlue »

clintonman wrote: 07 Feb 2018, 15:21 Don't understand "Where is your is other toolbar going to be placed?"
Your InterpolationToolbar

Code: Select all

//Default layout
UnofficialUpdateViewBar - {A5876B44-6C2B-45BC-8338-0D338E2097B1}
          WorkspaceAnim - {A5876B44-6C2B-45BC-8338-0D338E2097B1}
         LENavigatorBar - {A5876B44-6C2B-45BC-8338-0D338E2097B1}
                WorkspaceMain - {DB8FF3AE-6061-4700-83A3-27A07259B027}
            WorkspaceMainMenu - {ED84B8F1-9008-4842-8370-86D2B1888111}
                 WorkspaceNav - {2E9C67FB-8B3E-4FAF-9929-4885ABF8C3A6}
                CustomToolbar - {E4A42E12-80C0-4B2B-8807-FE461407083C}
               ClintonToolbar - {A1187F6A-B07C-4D6E-A83D-821D5A84CC4B}
ClintonsToolbarManagerToolbar - {9A2AA923-46E8-41F9-8D7D-356402DC3E68}
                 NURBSToolbar - {F6165BB1-D204-4AE7-9B3C-1584EC7E34C1}
                MacroRecordjS - {E81F8670-DE81-4FEC-81D8-5ADD8E116643}
                MacroRecordVB - {A2684D29-2F8E-4E1D-92E6-C19F54E1B058}
                     Record3D - {87C182F5-8548-4D4A-9C6E-5AB6ABFCCA50}
//Expanded
You probaly alreaady know but if the toolbars are not open it does not pick up the WinID.
Can you scan all of the Toolbars in TPE for the Prototype's ID ?
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: New Script installers ERROR

Post by trueBlue »

Test 5 with Unofficial Update
With all toolbars installed...

Perfect! I really like how you handling your Frames!
Except for:
clintonman wrote: 08 Feb 2018, 05:52 There is an inconsistency between where the install places the toolbar and where the toolbar buttons place them - not worth fixing
* Add your CustomToolbarGoldButton LMB Command to the C3D install?
clintonman wrote: 08 Feb 2018, 05:52 goldbutton left - open clinton toolbar
goldbutton right - opens a web page
c3d button now inside clinton toolbar, left click restores scripts, right click nothing
RE: CustomToolbarGoldButton RMB Command RsTool.OpenWebPage("clintons3d.com/truespace/index.html");
Is that the one you want? LOL, there is that little plural (s) again!
* Seems it would be better linking to the c3dPersistence page?

Could you PLEASE :) move this web link from the Gold button to the C3D button?
I hope changing the LMB and RMB commands in the CustomToolbar to Web Links does not cause any un for seen problems!
It also seems better to point to the actual "Unofficial" Update for trueSpace7.61 Full Version link, since your update is for tS7.61 only. The final update is going to replace the present update also.

With your Get Toolbars Win ID.RsObj could you add the following future toolbars for the Unofficial Final Update?

CustomToolbar
CustomToolbarGold
CustomToolbarBlue
Wanted to rename CustomToolbar to CustomToolbarRed, but that will just cause another issue, so I will keep the same.

Also since its setup for the Default layout only, you may want to incluude the other layouts too.
I guess user created toolbars are going to be out of the question, short of recommending they Reset their toolbars first or install in an unmodified Defaut layout.

Really liking this version!
Test...
Attachments
Wished the Toolbar Manager could look like this and then open to the Text version, but I will not go there!
Wished the Toolbar Manager could look like this and then open to the Text version, but I will not go there!
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

trueBlue wrote: 08 Feb 2018, 19:00
clintonman wrote: 07 Feb 2018, 15:21 Don't understand "Where is your is other toolbar going to be placed?"
Your InterpolationToolbar

Code: Select all

//Default layout
UnofficialUpdateViewBar - {A5876B44-6C2B-45BC-8338-0D338E2097B1}
          WorkspaceAnim - {A5876B44-6C2B-45BC-8338-0D338E2097B1}
         LENavigatorBar - {A5876B44-6C2B-45BC-8338-0D338E2097B1}
                WorkspaceMain - {DB8FF3AE-6061-4700-83A3-27A07259B027}
            WorkspaceMainMenu - {ED84B8F1-9008-4842-8370-86D2B1888111}
                 WorkspaceNav - {2E9C67FB-8B3E-4FAF-9929-4885ABF8C3A6}
                CustomToolbar - {E4A42E12-80C0-4B2B-8807-FE461407083C}
               ClintonToolbar - {A1187F6A-B07C-4D6E-A83D-821D5A84CC4B}
ClintonsToolbarManagerToolbar - {9A2AA923-46E8-41F9-8D7D-356402DC3E68}
                 NURBSToolbar - {F6165BB1-D204-4AE7-9B3C-1584EC7E34C1}
                MacroRecordjS - {E81F8670-DE81-4FEC-81D8-5ADD8E116643}
                MacroRecordVB - {A2684D29-2F8E-4E1D-92E6-C19F54E1B058}
                     Record3D - {87C182F5-8548-4D4A-9C6E-5AB6ABFCCA50}
//Expanded
You probaly alreaady know but if the toolbars are not open it does not pick up the WinID.
Can you scan all of the Toolbars in TPE for the Prototype's ID ?
Interpolation toolbar will go above the other toolbars

So you are saying when running the synchronize command to search for the ids in the toolbar prototype encapsulator instead of in windows manager space? Does that make sense? I thought the command operated on toolbar frames, so it can't operate on a frame if it doesn't exist.
Or maybe you are saying use everything in the toolbar prototypes in the list for open frames to synchronize?
here is a list of the prototype names found in the toolbar prototypes.

Code: Select all

17:20:23.211  TRACE   PhysMain  0x0   [RiSystemCommand.cpp(49)]
17:20:23.211  TRACE   Record3D  0x0   [RiSystemCommand.cpp(49)]
17:20:23.211  TRACE   MacroRecordjS  0x0   [RiSystemCommand.cpp(49)]
17:20:23.211  TRACE   MacroRecordVB  0x0   [RiSystemCommand.cpp(49)]
17:20:23.226  TRACE   UVEditor  0x0   [RiSystemCommand.cpp(49)]
17:20:23.226  TRACE   NavigationToolbar  0x0   [RiSystemCommand.cpp(49)]
17:20:23.226  TRACE     0x0   [RiSystemCommand.cpp(49)]
17:20:23.226  TRACE   Main  0x0   [RiSystemCommand.cpp(49)]
17:20:23.226  TRACE   PointEditSelectionBar  0x0   [RiSystemCommand.cpp(49)]
17:20:23.226  TRACE   PointEditToolsBar  0x0   [RiSystemCommand.cpp(49)]
17:20:23.226  TRACE   CharacterEditorBar  0x0   [RiSystemCommand.cpp(49)]
17:20:23.226  TRACE   PhysicsBar  0x0   [RiSystemCommand.cpp(49)]
17:20:23.242  TRACE   BottomBar  0x0   [RiSystemCommand.cpp(49)]
17:20:23.242  TRACE   Animation  0x0   [RiSystemCommand.cpp(49)]
17:20:23.242  TRACE   AnimationBar  0x0   [RiSystemCommand.cpp(49)]
17:20:23.242  TRACE   LENavigatorBar  0x0   [RiSystemCommand.cpp(49)]
17:20:23.242  TRACE   WorkspaceAnim  0x0   [RiSystemCommand.cpp(49)]
17:20:23.242  TRACE   UnofficialUpdateViewBar  0x0   [RiSystemCommand.cpp(49)]
17:20:23.242  TRACE   WorkspaceMainMenu  0x0   [RiSystemCommand.cpp(49)]
17:20:23.242  TRACE   NewViewBar  0x0   [RiSystemCommand.cpp(49)]
17:20:23.242  TRACE   CustomToolbar  0x0   [RiSystemCommand.cpp(49)]
17:20:23.257  TRACE   WorkspaceNav  0x0   [RiSystemCommand.cpp(49)]
17:20:23.257  TRACE   WorkspaceMain  0x0   [RiSystemCommand.cpp(49)]
17:20:23.257  TRACE   templates.MainMenu  0x0   [RiSystemCommand.cpp(49)]
Last edited by clintonman on 09 Feb 2018, 01:24, edited 2 times in total.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

trueBlue wrote: 08 Feb 2018, 23:20 Test 5 with Unofficial Update
With all toolbars installed...

Perfect! I really like how you handling your Frames!
Except for:
clintonman wrote: 08 Feb 2018, 05:52 There is an inconsistency between where the install places the toolbar and where the toolbar buttons place them - not worth fixing
* Add your CustomToolbarGoldButton LMB Command to the C3D install?
clintonman wrote: 08 Feb 2018, 05:52 goldbutton left - open clinton toolbar
goldbutton right - opens a web page
c3d button now inside clinton toolbar, left click restores scripts, right click nothing
RE: CustomToolbarGoldButton RMB Command RsTool.OpenWebPage("clintons3d.com/truespace/index.html");
Is that the one you want? LOL, there is that little plural (s) again!
* Seems it would be better linking to the c3dPersistence page?

Could you PLEASE :) move this web link from the Gold button to the C3D button?
I hope changing the LMB and RMB commands in the CustomToolbar to Web Links does not cause any un for seen problems!
It also seems better to point to the actual "Unofficial" Update for trueSpace7.61 Full Version link, since your update is for tS7.61 only. The final update is going to replace the present update also.

With your Get Toolbars Win ID.RsObj could you add the following future toolbars for the Unofficial Final Update?

CustomToolbar
CustomToolbarGold
CustomToolbarBlue
Wanted to rename CustomToolbar to CustomToolbarRed, but that will just cause another issue, so I will keep the same.

Also since its setup for the Default layout only, you may want to incluude the other layouts too.
I guess user created toolbars are going to be out of the question, short of recommending they Reset their toolbars first or install in an unmodified Defaut layout.

Really liking this version!
Test...
What does this mean? "* Add your CustomToolbarGoldButton LMB Command to the C3D install?"
You want rt click of c3d button to point to united3dartists.com/forum/viewtopic.php?t=4247
and remove the right click from the gold button?
I can add the 3 requested toolbar names to the search.
Setup doesn't care what the layout is active.
User toolbars aren't going to survive a context reset unless they know how to go into the link editor and create prototypes etc... or someone creates an entire system for creating toolbars in some robust and easy to use manner.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

latest test installers
runs synchronize on all open toolbar frames before installations including CustomToolbar, CustomToolbarGold and CustomToolbarBlue
this can be seen if the log view is open, this logging will be removed in final version
fixes curve widget node duplication
removes web link from gold right click
c3d right click goes to the persisitent install page
if unofficial not installed the red toolbox goes to the unofficla 7.61 thread
Attachments
3toolbars_test6.zip
(716.35 KiB) Downloaded 207 times
Clinton Reese

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

Re: New Script installers ERROR

Post by trueBlue »

Here is what I was talking about with regards to running the Gold button's LMB command
Hook it up to your C3D installer like shown. After the Alert that it has been installed, it runs.
I added a couple of lines in the Gold LMB command script.
It works in all Layouts.
Gold RMB command.PNG
With each other toolbar installer you will need to add their LMB command that opens it's toolbar to the Gold LMB command script, below the Gold LMB command line.
Attachments
Gold LMB command.RsObj
(6.31 KiB) Downloaded 190 times
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: New Script installers ERROR

Post by trueBlue »

When I Reset the Default Context, my Widget lights are missing.
Attachments
Widgets Lights missing after a Reset.PNG
Widgets Lights missing after a Reset.PNG (4.22 KiB) Viewed 4402 times
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

trueBlue wrote: 09 Feb 2018, 22:32 Here is what I was talking about with regards to running the Gold button's LMB command
Hook it up to your C3D installer like shown. After the Alert that it has been installed, it runs.
I added a couple of lines in the Gold LMB command script.
It works in all Layouts.
Gold RMB command.PNG
With each other toolbar installer you will need to add their LMB command that opens it's toolbar to the Gold LMB command script, below the Gold LMB command line.
I still don't understand. What does this do that the installer does not? And how does it work? it activates one window then another window then opens the toolbar.
Last edited by clintonman on 10 Feb 2018, 01:56, edited 1 time in total.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

trueBlue wrote: 10 Feb 2018, 00:55 When I Reset the Default Context, my Widget lights are missing.
Caused by the process that stops the duplicate widgets. Fixed by telling it to only delete/restore widgets in layer 2 when name starts with "Active".
Clinton Reese

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

Re: New Script installers ERROR

Post by trueBlue »

clintonman wrote: 10 Feb 2018, 01:48
trueBlue wrote: 09 Feb 2018, 22:32 Here is what I was talking about with regards to running the Gold button's LMB command
Hook it up to your C3D installer like shown. After the Alert that it has been installed, it runs.
I added a couple of lines in the Gold LMB command script.
It works in all Layouts.
Gold RMB command.PNG
With each other toolbar installer you will need to add their LMB command that opens it's toolbar to the Gold LMB command script, below the Gold LMB command line.
I still don't understand. What does this do that the installer does not? And how does it work? it activates one window then another window then opens the toolbar.
Did you try it?
I hooked it up as shown in the Pic.
The first line selects the 3D Window. Makes it in Focus.
The second line selects the 3D Window in the Expanded. layout as it is the only 3D Window that is different from the rest.
The third line is your Gold' button LMB command.

I have run it several times in all layouts and it works flawlessly.
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: New Script installers ERROR

Post by trueBlue »

That link that you are using for the update is going to be deleted after the final release.
So it should go to:

Code: Select all

united3dartists.com/forum/viewtopic.php?t=3732
"Unofficial" Update for trueSpace7.61 Full Version
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

trueBlue wrote: 10 Feb 2018, 02:00
clintonman wrote: 10 Feb 2018, 01:48
trueBlue wrote: 09 Feb 2018, 22:32 Here is what I was talking about with regards to running the Gold button's LMB command
Hook it up to your C3D installer like shown. After the Alert that it has been installed, it runs.
I added a couple of lines in the Gold LMB command script.
It works in all Layouts.
Gold RMB command.PNG
With each other toolbar installer you will need to add their LMB command that opens it's toolbar to the Gold LMB command script, below the Gold LMB command line.
I still don't understand. What does this do that the installer does not? And how does it work? it activates one window then another window then opens the toolbar.
Did you try it?
I hooked it up as shown in the Pic.
The first line selects the 3D Window. Makes it in Focus.
The second line selects the 3D Window in the Expanded. layout as it is the only 3D Window that is different from the rest.
The third line is your Gold' button LMB command.

I have run it several times in all layouts and it works flawlessly.
RandomLayout.jpg
Problem is someone can make their own layout that doesn't have those windows at all. Image shows a random layout with toolbar almost outside truespace. We need something more robust.
Clinton Reese

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

Re: New Script installers ERROR

Post by trueBlue »

clintonman wrote: 10 Feb 2018, 02:07
trueBlue wrote: 10 Feb 2018, 02:00
clintonman wrote: 10 Feb 2018, 01:48
I still don't understand. What does this do that the installer does not? And how does it work? it activates one window then another window then opens the toolbar.
Did you try it?
I hooked it up as shown in the Pic.
The first line selects the 3D Window. Makes it in Focus.
The second line selects the 3D Window in the Expanded. layout as it is the only 3D Window that is different from the rest.
The third line is your Gold' button LMB command.

I have run it several times in all layouts and it works flawlessly.
RandomLayout.jpg
Problem is someone can make their own layout that doesn't have those windows at all. Image shows a random layout with toolbar almost outside truespace. We need something more robust.
Your pic shows that tS7 is not Maximized. I noticed that to, and it happens with your last 3 installers, when tS7 is not Maximized.
Did the 3D Window have focus in your test?
Pic shows it did not.
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: New Script installers ERROR

Post by trueBlue »

clintonman wrote: 10 Feb 2018, 01:54
trueBlue wrote: 10 Feb 2018, 00:55 When I Reset the Default Context, my Widget lights are missing.
Caused by the process that stops the duplicate widgets. Fixed by telling it to only delete/restore widgets in layer 2 when name starts with "Active".
As said this seems so to work for me with widgets.

Code: Select all

Node.Delete("/Widgets/Active Widgets Layer2/Active Widget")
Node.Delete("/Widgets/Active Widgets Layer2/Active Widget, 1")
Node.Delete("/Widgets/Active Widgets Layer2/Active Widget, 2")
Node.Delete("/Widgets/Active Widgets Layer2/Active Widget, 3")
Node.Delete("/Widgets/Active Widgets Layer2/Active Widget, 4")
Node.Delete("/Widgets/Active Widgets Layer2/Active Widget, 5")
Node.Delete("/Widgets/Active Widgets Layer2/Active Widget, 6")
RsFileIO.SaveObject(System.GetMainDir() + '\\Scripts\\preobjects\\Widgets.RsObj', '/Widgets')
// The commands below were taken from the init.js that fires every time you start up tS7
Widgets.ActivateWidget('/Widgets/Tools/ViewWidget','Default', '', '')
Widgets.ActivateWidget('/Widgets/Tools/Background','Default', '', '')
Widgets.ReplaceWidget('{5C9008D4-B6B3-4359-9E63-18D2FC228A6E}','/Widgets/Edit/Default context','Default','','Dummy')
Widgets.SetWidgetGroupDependency('{5C9008D4-B6B3-4359-9E63-18D2FC228A6E}','{E8913C00-9A2A-43cf-8238-27B4BFB50A1F}')
Widgets.SetWidgetGroupDependency('{5C9008D4-B6B3-4359-9E63-18D2FC228A6E}','{88839603-7F98-41f0-96AC-BE94E801CFF3}')
Widgets.SetWidgetGroupDependency('{E8913C00-9A2A-43cf-8238-27B4BFB50A1F}','{88839603-7F98-41f0-96AC-BE94E801CFF3}')
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

trueBlue wrote: 10 Feb 2018, 02:17
clintonman wrote: 10 Feb 2018, 02:07
trueBlue wrote: 10 Feb 2018, 02:00
Did you try it?
I hooked it up as shown in the Pic.
The first line selects the 3D Window. Makes it in Focus.
The second line selects the 3D Window in the Expanded. layout as it is the only 3D Window that is different from the rest.
The third line is your Gold' button LMB command.

I have run it several times in all layouts and it works flawlessly.
RandomLayout.jpg
Problem is someone can make their own layout that doesn't have those windows at all. Image shows a random layout with toolbar almost outside truespace. We need something more robust.
Your pic shows that tS7 is not Maximized. I noticed that to, and it happens with your last 3 installers, when tS7 is not Maximized.
Did the 3D Window have focus in your test?
Pic shows it did not.
tS is maximized, the right portion is my second monitor.
Added your code to the c3d button instead of running from the link editor. Made a random layout and behavior is still no different than previous installer. attached is the layout file. If I go to expanded layout and open a link editor it has focus. I push the button the toolbar goes to the link editor. Toolbar only opens in window that was active before the change no matter what I do. I'll attach the installer, maybe there is a mistake when I copied it.

Could also be I don't understand, maybe this is for installation only, I thought you wanted to change the c3d button.

You could start over, tell me exactly what is supposed to happen when and the steps I take to see the expected outcome. What is the end goal of this? I think that's where I'm getting lost here.

Ha, just found out rsl layout files aren't allowed on the forum.
Attachments
Random.zip
(25.83 KiB) Downloaded 235 times
Clinton Reese

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

Re: New Script installers ERROR

Post by trueBlue »

Here is the C3D, Curves, and TB unmodified just has the 1 script hooked up
Attachments
2toolbars_test6.zip
(456.93 KiB) Downloaded 225 times
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

trueBlue wrote: 10 Feb 2018, 04:24 Here is the C3D, Curves, and TB unmodified just has the 1 script hooked up
Downloaded, installed. So what I'm I looking at, how do I test it and see the difference it makes? I at least see you didn't mean to alter the c3d button.

Ran on a random custom layout button still on the far right of the screen.

Edit: Same thing with the red toolbar too.
Clinton Reese

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

Re: New Script installers ERROR

Post by trueBlue »

You are looking to see if the 3D Window has/gets focus after the alert runs, that C3D was installed. Should snap to the Default position.
Unhook the script and try without to see differences.
No worry if it does not work, what you have is fine!
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

trueBlue wrote: 10 Feb 2018, 05:01 You are looking to see if the 3D Window has gets focus after the alert runs, that C3D was installed. Should snap to the Default position.
Unhook the script and try without to see differences.
No worry if it does not work, what you have is fine!
At least I finally understand what you were getting at.
Here is more generalized code. It works in all cases, including the custom layout. Not perfect though, since if you open a 3d window and change it to a 1d,2d or 4d there is no way to tell. So it will see it as 3d and use it. I'll add this to the installers. see attached for testing.

Code: Select all

// Execute 
// Called to execute the command 
function Execute(params)
{
//WindowsManager.ActivateWorkWindow("/Project/Windows Manager Space/Frame Window/Border Docking Place/Frame Window, 1/Split Docking Place/Frame Window, 1/Split Docking Place/Frame Window, 1/Split Docking Place/Frame Window, 2");
//WindowsManager.ActivateWorkWindow("/Project/Windows Manager Space/Frame Window/Border Docking Place/Frame Window, 1/Split Docking Place/Frame Window, 2/Split Docking Place/Frame Window, 3/Split Docking Place/Frame Window, 1/Split Docking Place/Frame Window, 1/Split Docking Place/Frame Window, 1");
found3DWindow = false;
Get3DWindow("/Project/Windows Manager Space");
if(!Node.SubObjectCount("Toolbar Prototypes Encapsulator/ClintonToolbar") ==0){name=WindowsManager.GetWindowsManagerNodeName();WindowsManager.CloseToolbar("ClintonToolbar");WindowsManager.OpenToolbarFromPrototype("ClintonToolbar",32,32,0,0);Node.Rename(name+"/"+Node.SubObject(name,Node.SubObjectCount(name)-1),"ClintonToolbarFrame");WindowsManager.SnapFrameToFrameEx(WindowsManager.GetWorkWindow(),name+"/ClintonToolbarFrame",19,10,310,-60);WindowsManager.SetFrameOwnerFrame(name+"/ClintonToolbarFrame",WindowsManager.GetWorkWindow());}

}

function Get3DWindow(currentNode)
{
	if(found3DWindow) return;
	if(Node.ConExists(currentNode, "Def3D")) {
		check3d = Node.Value(currentNode, "Def3D");
		if(check3d != "") {
			found3DWindow = true;
			WindowsManager.ActivateWorkWindow(currentNode);
			System.Trace(check3d);
			return;
		}
	}

	var childCount = Node.SubObjectCount(currentNode);
	if(childCount == 0) return;
	for(var i = 0; i < childCount; i++) {
		var newNode = currentNode + "/" + Node.SubObject(currentNode, i);
		Get3DWindow(newNode);
	}
}
Attachments
c3dPersistence_trueblue.RsObj
(127.49 KiB) Downloaded 231 times
Clinton Reese

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

Re: New Script installers ERROR

Post by trueBlue »

Absolutely Perfect Clinton! :worshipI
I will check out the other toolbars tomorrow in this test.
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

trueBlue wrote: 10 Feb 2018, 02:04 That link that you are using for the update is going to be deleted after the final release.
So it should go to:

Code: Select all

united3dartists.com/forum/viewtopic.php?t=3732
"Unofficial" Update for trueSpace7.61 Full Version
Does this mean that the standalone version will not be updated?
Clinton Reese

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

Re: New Script installers ERROR

Post by trueBlue »

For you, YES. Given all of the hell I just put you through. :oops:
It is a little different from tS7.61, as far as it's directory is setup though.

I made some quick pics for your Toolbar Manager, I can do better. I was thinking 3D Text.
Pics are just for the top row the buttons underneath are still text.
Here is the screen shot showing how they look, and where I added each pics:
ToolManagerPics.PNG
Attachments
ToolbarManagerPICs.zip
(4.1 KiB) Downloaded 197 times
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

trueBlue wrote: 10 Feb 2018, 08:04 For you, YES. Given all of the hell I just put you through. :oops:
It is a little different from tS7.61, as far as it's directory is setup though.

I made some quick pics for your Toolbar Manager, I can do better. I was thinking 3D Text.
Pics are just for the top row the buttons underneath are still text.
Here is the screen shot showing how they look, and where I added each pics:
ToolManagerPics.PNG
Giving me trouble. Click on the image and nothing happens until I move away then back or have to hold and wait like other tS buttons before it opens. Plain text is much faster so I'm going to leave it as is. I actually didn't know text was so much faster, may change the way I work.
Clinton Reese

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

Re: New Script installers ERROR

Post by trueBlue »

Yeah I wanted you to try it and see if you knew what the problem is with icons and text. What was strange to is it went from the buttons going down to buttons going up, after adding the icons. Strange beast.
Do you notice the top small title bar toolbar taking a long time to synchronize when installing?
Quite the difference from manually Resetting that toolbar verses from script. Maybe because the script runs fast and or no break between each toolbar being synchronized. Anyway just wondered if you saw the same thing on your end.
I changed the WinID for that toolbar and the File menu, but it made no difference.
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

trueBlue wrote: 11 Feb 2018, 01:25 Yeah I wanted you to try it and see if you knew what the problem is with icons and text. What was strange to is it went from the buttons going down to buttons going up, after adding the icons. Strange beast.
Do you notice the top small title bar toolbar taking a long time to synchronize when installing?
Quite the difference from manually Resetting that toolbar verses from script. Maybe because the script runs fast and or no break between each toolbar being synchronized. Anyway just wondered if you saw the same thing on your end.
I changed the WinID for that toolbar and the File menu, but it made no difference.
Nope, didn't notice, but that doesn't mean it's not happening.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

I'm going to make another change to the auto run system for the installers. I plan to replace the timer based trigger with the OnPostLoad function from the advanced handlers button.
timerBasedAutoRun.jpg
OnPostLoad.jpg
The image shows all the advanced handlers. They will all be deleted except for OnPostLoad and it will call another function that does the installation. The purpose of the other function is so I can run tests from the normal Execute function.
Also plan to add a checkbox so I can turn off auto installation for testing.
Clinton Reese

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

Re: New Script installers ERROR

Post by trueBlue »

One time I noticed that it took 47469 ms to run.

Transition Command - 7000 ms
set prototype/Project/Windows Manager Space/ Frame, 1
Transition Command - 40469 ms

What advantage will the OnPostLoad be?
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

Simplicity.
Clinton Reese

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

Re: New Script installers ERROR

Post by trueBlue »

Send me something Simple that runs OnPostLoad. Like an Activity or Script and or?
I was thinking it would be nice if your toolbar installers had a check if it existed, did not run the installation.
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

Tried it at it doesn't work well. The params inside OnPostLoad is empty so no settings can be read in, nothing can be written and can't connect to have a script node run after it. Looks really limited.
Guess I'll stick with the timer based autorun.

Code: Select all

// Execute 
// Called to execute the command 
function Execute(params)
{
	var AutoRun = params.ConValue('AutoRun');

	System.Alert("Inside Execute");
	CommonExecute(params);

}

function CommonExecute(params2)
{
	var AutoRun = params2.ConValue('AutoRun')
	if(AutoRun == undefined)
		System.Alert("Inside CommonExecute from OnPostLoad");
	else
		System.Alert("Inside CommonExecute from Execute");
}
// ---------------------------------
// Advanced handlers 
// ---------------------------------

function OnPostLoad(params)
{
	// params is empty and useless at this point in time
	System.Alert("Inside OnPostLoad");
	CommonExecute(params);
}
Attachments
OnPostLoad Demo.RsObj
(5.77 KiB) Downloaded 273 times
Clinton Reese

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

Re: New Script installers ERROR

Post by trueBlue »

Bummer! There is always the RsRcd way. :)
This is your Test6 c3dPersistence RsObj with everything Un-encapsulated.
The timer based trigger nodes were removed.
The CheckVersion's top left icon is set to Run automatically.
You can do it with a RsScn file but RsRcd is way smaller then RsScn.
You can remove the 3D text as well to save file size, it was added for fun!
This forum does not except RsRcd files
Attachments
c3dPersistenceRsRcd.zip
(322.68 KiB) Downloaded 260 times
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

trueBlue wrote: 11 Feb 2018, 21:12 Bummer! There is always the RsRcd way. :)
This is your Test6 c3dPersistence RsObj with everything Un-encapsulated.
The timer based trigger nodes were removed.
The CheckVersion's top left icon is set to Run automatically.
You can do it with a RsScn file but RsRcd is way smaller then RsScn.
You can remove the 3D text as well to save file size, it was added for fun!
This forum does not except RsRcd files
How does it work and how did you create it?
There seems to be an invisible vray node in the scene. See it in the scene view but not in the link editor.
Clinton Reese

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

Re: New Script installers ERROR

Post by trueBlue »

That's because I have VRay. You can select it from the Scene View and delete it, then from the File menu select Save As RsRcd.
Capture1.PNG
As you can see in the LE all of your nodes are in the scene. They are not encapsulated.
There is a way to do it from the encapsulation, and I can show you by example.
The only file you want to change is the script that you want to run automatically when the file loads, in this case the VersionCheck. Left click the top left icon and select Run automatically.
Capture.PNG
Capture.PNG (29.78 KiB) Viewed 6701 times
I opened another LE windows and Ctrl + Dragged all of your nodes out of their Encapsulated/container to the other LE window, and hooked them up as you had them.
Capture2.PNG
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

Nice, I had no idea that was in there.
Clinton Reese

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

Re: New Script installers ERROR

Post by trueBlue »

The (timer based trigger) works for a RsObj
The (Run automatically) only works for Shared Space, RsScn, and RsRcd

Something that may or may not be of interest to you with your mass installer is found in the script "Sculpturer" found in Objects- Script Objects / Magic Scuplturer. At the very bottom you find
tSBridge.BlockRsTSEvents(bEventsBlocked);
tSBridge.SynchronizeObject(encaps)
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

Maybe final dev installs.

Checkbox for autorun
Removed all extra logging
Rewrote timer based autorun script - was confusing
changed website for c3d not installed to united3dartists.com/unofficialupdate/index.html, this page does not exist yet
all installers run more slowly because of the need to reset all the toolbars before making changes
changes for future batch installer which will handle resetting the toolbars and saving the toolbars and widgets

some old bugs may reappear, accidental update of older version
Attachments
DevInstallsFeb11.zip
(713.97 KiB) Downloaded 261 times
Clinton Reese

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

Re: New Script installers ERROR

Post by trueBlue »

Tested DevInstallsFeb11 in tS7.61 with the update freshly installed.

Everything just works! I tested basic functionality with Install, Reinstall, Toolbars Reinstall in different order, Toolbar's Reset, with the Hide script renamed, and visa versa. And the Restore Widgets and Toolbars.
Great job Clinton, Perfect!

The only thing I noticed was the Help text in the Gold and C3D icons.

Gold icon's Help text. Help text = Open the Clinton Toolbar, rt click for web page
* Need to remove ( , rt click for web page )


C3D icon's Help text. Help text = reload custom scripts
* Missing RMB info about opening your persistent page

With your Restore Widgets and Toolbars script, it is almost a complete uninstall, from what I can tell.
* Suggest you delete the backed up Toolbars, Widgets, and the clintonobjects Folder.
Then it would be a complete uninstall. But at the very least delete the backed up Widgets and Toolbars!
That would save about 8 mgb on user's hard drive.
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

Thanks, I'll fix the help messages.
Gonna skip the uninstall. The only readon the widgets and toolbars thing exists is to recover from some unknown side effect of installing the scripts. other than that it's a one way deal.

I threw your update notes into the unofficial update webpage, so right click button can be tested can be tested.
http://united3dartists.com/unofficialupdate/
Clinton Reese

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

Re: New Script installers ERROR

Post by trueBlue »

clintonman wrote: 13 Feb 2018, 06:19 I threw your update notes into the unofficial update webpage, so right click button can be tested can be tested.
http://united3dartists.com/unofficialupdate/
Okay that works, except who is "kabrite under maintenance"?
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

trueBlue wrote: 13 Feb 2018, 11:35
clintonman wrote: 13 Feb 2018, 06:19 I threw your update notes into the unofficial update webpage, so right click button can be tested can be tested.
http://united3dartists.com/unofficialupdate/
Okay that works, except who is "kabrite under maintenance"?
This link was down when I made the page
http://truespace.kabrite.com/ which seems to forward to
http://truespace3d.free.fr/

they host the tS76 Modelside Edition V2.1
Clinton Reese

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

Re: New Script installers ERROR

Post by trueBlue »

Was it your intention to put the ReloadCustomScripts outside of your CustomCommands Encaps?
ReloadCustomScripts.PNG
ReloadCustomScripts.PNG (9.69 KiB) Viewed 6312 times
Just applied the update and noticed that the CustomCommands Encaps was missing. So I selected the C3D icon, and noticed the above.
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

Yep, the ReloadCustomScripts creates the CustomCommands encaps and loads the scripts into it.
Clinton Reese

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

Re: New Script installers ERROR

Post by trueBlue »

Took your DevInstallsFeb11 for spin in tS761 without the update.
All seem to work great with the exception of the help text already mentioned.
I am not understanding why you can not link to the actual tS761 update page where the file actually resides.
I found an error on my document that I want to correct and it is also going to be updated when I release the final update.
So if you choose to keep it the same as you have it, there will be a conflict.
Really wish you would put the link here that has the Revisions:
Attachments
Link to tS761 update.PNG
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

trueBlue wrote: 14 Feb 2018, 17:46 Took your DevInstallsFeb11 for spin in tS761 without the update.
All seem to work great with the exception of the help text already mentioned.
I am not understanding why you can not link to the actual tS761 update page where the file actually resides.
I found an error on my document that I want to correct and it is also going to be updated when I release the final update.
So if you choose to keep it the same as you have it, there will be a conflict.
Really wish you would put the link here that has the Revisions:
I am not planning to keep the webpage, it is a placeholder. It will forward to whatever page you want.
Browser goes to
united3dartists.com/unofficialupdate/ an easy to remember, refer to and type url and automatically forwards to
v ... =55&t=3732
or like I said wherever you want it to go
The links on my personal website will go to the collection of unofficial updates because they work with the standalone version patched or not and the full version patched or not. Only a couple actually rely on the updates. I'll urge people to use the update, but I won't force it.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

Attached are what will be the release versions of the scripts so far. Auto run has been enabled and they are gathered into a library for batch installation.
ToolbarsandAutoload.jpg
A new script, the interpolation toolbar installer has been added the the "Objects - Autoload" library.
united3dartists/unofficial forwards to I think the correct location.

1. unzip and copy the "Objects - Autoload" library into the Rs Main Libraries folder
2. load the c3dpersistenceAutoload.RsObj
3. load and run the Autoload.RsObj
Attachments
Objects - Autoload.zip
(723.38 KiB) Downloaded 242 times
Autoload.RsObj
(57.79 KiB) Downloaded 237 times
c3dPersistenceAutoload.RsObj
(113.71 KiB) Downloaded 281 times
Clinton Reese

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

Re: New Script installers ERROR

Post by trueBlue »

Have not tried this latest edition yet. I will this weekend.
Have you ever tried the Default.RsPrj in the Main Libraries?
I was surprised, not sure I have ever tried it until today.
Ha! It brings back the original Default layout with the 2 bottom toolbars.
Anyway I thought you might want to investigate this approach with your installers as it would eases the toolbar resetting.
In this project everything was taken out.
The Library is set up with your toolbars.
Attachments
Clintons C3D RsPrj.zip
(107.76 KiB) Downloaded 247 times
Everything removed.PNG
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: New Script installers ERROR

Post by clintonman »

Nope, never even noticed project files before. Not sure I trust them. Every 3rd time or so the default project crashes truespace. Could be because it's old and newly created ones are safer. Tested on standalone and default crashes every time, new ones are ok. I guess project files fall somewhere between a layout and context files.
Clinton Reese

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

Re: New Script installers ERROR

Post by trueBlue »

Yeah if you notice with the default.RsPrj in Windows Manager Space, there is the Invisible toolbars. Same as with the original install of tS7.61.
Invisible toolbars.PNG
Invisible toolbars.PNG (5.04 KiB) Viewed 6273 times
This version is not working for me. The Reset Toolbars runs and then this Alert.
Attachments
Not working.PNG

Return to “Repositorium”