trueSpace761 Workspace - Projects

User avatar
clintonman
Captain
Posts: 5429
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: trueSpace761 Workspace - Projects

Post by clintonman »

trueBlue wrote: 25 Mar 2022, 20:49 This script does not do anything
I am guessing because the Run script is using the following at the beginning and again a few lines down
params.SetTerminationFlag();
return;
Did you open a log view?
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: trueSpace761 Workspace - Projects

Post by trueBlue »

Okay I see the log entries
I was looking for the exported script

I looked at the existing UU Lights and Cameras
Their Watch Dog Event's 'Change detect' attribute is not connected until a user selects the Synchronize button, so they should not be a problem

Just an idea, maybe you could add a script that connects the Watch Dog Event's 'Change detect' to your scripts making it (Interactive) instead of a button that runs a script (Manual)
User avatar
trueBlue
Captain
Posts: 5214
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: trueSpace761 Workspace - Projects

Post by trueBlue »

The only noticeable ones are Yafaray and material editor, but there are about 30 other scripts that are also running because of the watchdog flaw. Maybe it's not a problem or maybe they create hidden problems
Have tried hooking up an Alert to your scripts that have Watch Dog Events to see if they run when loading a Project?

Edit:
Just tried and they do indeed run when loading a Project
Alert.png
User avatar
clintonman
Captain
Posts: 5429
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: trueSpace761 Workspace - Projects

Post by clintonman »

trueBlue wrote: 25 Mar 2022, 21:06 ...

I looked at the existing UU Lights and Cameras
Their Watch Dog Event's 'Change detect' attribute is not connected until a user selects the Synchronize button, so they should not be a problem
...
They run even when "Change detect" is not connected. That is the exact problem/bug with the Watchdogs.
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: trueSpace761 Workspace - Projects

Post by clintonman »

First script is done, "align and distribute".

http://clintons3d.com/plugins/truespace ... align.html

The changes are in the "alignment script" node and in the "axisUpdate" node.

Small note, all the new install scripts have an install button instead of running automatically.
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: trueSpace761 Workspace - Projects

Post by clintonman »

I looked at constraints and their watchdogs are not connected until they are used, so skipping it.

Grid Array, radial array and lathe tool already have a return early conditions, so no need to update them.

Going through it all and the problem isn't as bad as I thought. Several of the watchdog scripts are already set to return early or they run such small number of commands that adding a check wouldn't help or even matter. I think maybe 3 or 4 more scripts to fix and it's done.
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: trueSpace761 Workspace - Projects

Post by trueBlue »

Yeah, the align and distribute does not seem harmful either, even if it does run
A lot of your scripts will not run if certain conditions are not met, like if an object is selected and or has a Mesh, etc...
I just did a test and Watch Dog Events do not run in the scene level when loading a Project
User avatar
clintonman
Captain
Posts: 5429
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: trueSpace761 Workspace - Projects

Post by clintonman »

trueBlue wrote: 25 Mar 2022, 23:14 Yeah, the align and distribute does not seem harmful either, even if it does run
A lot of your scripts will not run if certain conditions are not met, like if an object is selected and or has a Mesh, etc...
I just did a test and Watch Dog Events do not run in the scene level when loading a Project
That's because they are no longer in the scene. Project replaces the scene, unless you mean a project scene has watch dogs in it and they don't run?

I did a survey and the list is short for fixes.
nurbs info
material color on particles
object widget scale
pe widget scale
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: trueSpace761 Workspace - Projects

Post by trueBlue »

Yes, I saved the Project with a Watch Dog Event hooked up to an Alert in the scene
I tested with the 'Change detect' connected and not connected, neither runs the Alert when loading a Project
You would think it would be the opposite, runs in the scene and not anywhere else
Funky! :bananadevil:
User avatar
clintonman
Captain
Posts: 5429
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: trueSpace761 Workspace - Projects

Post by clintonman »

Weird and unpredictable. Never would have guessed that.

NURBSInfo watchdog is ok, no change needed.
material color on particles - just making a single 16x16 image so, no need for change
Clinton Reese

http://clintons3d.com
Post Reply