PathTools for workspace

Smart people ~ Great Scripts
stan
Master Chief Petty Officer
Posts: 580
Joined: 21 May 2009, 17:20

Re: PathTools for workspace

Post by stan »

Here it is..
I won't change where you cycle panel aspects. I like it the way it is.

Panels now open all over the place. Not sure why one would open them all at the same time though.

Fixed the way CtrlPointTB works. Dynapick should be active now when toolbar opened. If not selected it will light up when chosen If some other tool other that vertex has been used on the edit nav toolbar you will have to select it. I won't add edge tool in the toolbar as it isn't really useful but you can press the 'e' key if you want to or select it in the nav toolbar, There is no issue with using rect select or the lasso tool they work too but won't add them.
sfirstafter.jpg
Not sure what you mean about the draw curve? If you mean the draw path it works fine.
PathTools installer2023_Q.RsObj
You do not have the required permissions to view the files attached to this post.
User avatar
trueBlue
Captain
Posts: 5216
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: PathTools for workspace

Post by trueBlue »

stan wrote: 08 Dec 2023, 14:51 Here it is..
I won't change where you cycle panel aspects. I like it the way it is.
It does not cycle panel aspects, it cycle selects Path objects in the scene
Yesterday I had a bunch of crashes
Just before the crash, this is the state of the Info panel
Path tS Crash.png
.
I think I found a culprit to my crashes with your Installer
Paths panel
name, fileList and more importantly, the clipList attributes are populated with items that do not exist in my current scene
Your scripts do not get rid of them either
This is where my Cycle Select Paths script comes in handy
It has to be called from inside the Paths panel

Code: Select all

var cycle = -1;
function Execute(params) 
{
	try
	{
		util = System.CreateDO("Clintons3D Package/Utility functions");
	}
	catch(err)
	{
		//System.Alert("Clintons3D Package  v.1638404 or higher must be installed");
		return;
	}

	var sceneObjs = GetSceneObjects();

	Space.Unselect()

	util.ClearStatusMessage(0)

	if(sceneObjs.length == 0) { 
		if(Node.Exists('Status Message'))
			util.SetStatusMessage("No Paths found in your scene", 2000)
		else
			System.Alert("No Paths found in your scene")
			Node.Value(System.ThisOwner(), 'frameCount') = 0;
			Node.Value(System.ThisOwner(), 'name') = '';
			Node.ConReset(System.ThisOwner(), 'fileList')
			Node.ConReset(System.ThisOwner(), 'clipList')
		return;
	}

	cycle++;
	cycle = cycle % sceneObjs.length;

	var pathName = Node.ShortName(sceneObjs[cycle]);

	Node.Select(sceneObjs[cycle])

}

function GetSceneObjects()
{
	var objects = [];
	var scene = Space.CurrentScene();
	for(var i=0;i<Node.SubObjectCount(scene);i++) {
		var node = scene + "/" + Node.SubObject(scene, i);
		if(Node.ConExists(node, "UpVector")) {
			objects.push(node);
		}
	}
	return objects;
}
You do not have the required permissions to view the files attached to this post.
stan
Master Chief Petty Officer
Posts: 580
Joined: 21 May 2009, 17:20

Re: PathTools for workspace

Post by stan »

You should always check that the list is valid by clicking on save to list. Don't just think in a new scene or new install the list is valid. I doubt I would be able to clear list on scene change. On new install I''m just not clearing the list every time I put together a new install. I did a dew times but forget to.

As for the clip list I'll look at that later today.
User avatar
trueBlue
Captain
Posts: 5216
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: PathTools for workspace

Post by trueBlue »

If you want your Path Tools to be useful, you first need to look at how a user uses it from their perspective.
It starts by installing it.
The way it has been with all of your installers, it installs incomplete.
After installing and closing trueSpace, your Path Tools and your toolbar to open the Path Tools are gone
When you Reset to Default Context, everything that was installed is gone
stan
Master Chief Petty Officer
Posts: 580
Joined: 21 May 2009, 17:20

Re: PathTools for workspace

Post by stan »

Here is the new version..

There was a space in front of the owned by value I didn't notice on the PathTools toolbar. It stays put now.

There is now a reset button under the PathPanel to clear values.

Realized there was still a not quite right tag alias in the vertex button. I did have to fix the tag alias value of the dynapick select earlier on. Then in the preobjects file of the toolbar prototypes so it would be correct on new windows or resetting..


PathTools installer2023_R.RsObj
You do not have the required permissions to view the files attached to this post.
User avatar
Emmanuel
Chief Warrant Officer
Posts: 651
Joined: 14 Jun 2009, 06:47

Re: PathTools for workspace

Post by Emmanuel »

Still getting the same error message on my side...
stan
Master Chief Petty Officer
Posts: 580
Joined: 21 May 2009, 17:20

Re: PathTools for workspace

Post by stan »

Emmanuel, could you post that error again.. I removed all the old discussions about errors. :bananasad:
User avatar
Emmanuel
Chief Warrant Officer
Posts: 651
Joined: 14 Jun 2009, 06:47

Re: PathTools for workspace

Post by Emmanuel »

stan wrote: 09 Dec 2023, 14:38 Emmanuel, could you post that error again.. I removed all the old discussions about errors. :bananasad:
error event.jpg
You do not have the required permissions to view the files attached to this post.
stan
Master Chief Petty Officer
Posts: 580
Joined: 21 May 2009, 17:20

Re: PathTools for workspace

Post by stan »

This version covers that error i changed the value to a point. It was only used in that one place so I didn't use Point Data. It never gave that error, not even in win10 .

Here is the new version.
Upgrade to the reset code.. It was not resetting the connector with System.ThisOwner() + 'Paths'

Hope this works for you Emmanuel..It should at least get past that error.


PathTools installer2023_S.RsObj
You do not have the required permissions to view the files attached to this post.
User avatar
Emmanuel
Chief Warrant Officer
Posts: 651
Joined: 14 Jun 2009, 06:47

Re: PathTools for workspace

Post by Emmanuel »

stan wrote: 09 Dec 2023, 19:16
Hope this works for you Emmanuel..It should at least get past that error.
Not yet.
Line 116 this time.

You have 7 versions left before you reach out the alphabet letters. Use the remaining bullets carefully :mrgreen:
You do not have the required permissions to view the files attached to this post.
Post Reply