Final trueSpace 7.61 Beta 8 Unofficial Update

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

Re: Final trueSpace 7.61 Beta 8 Unofficial Update

Post by clintonman »

trueBlue wrote: 18 Jan 2023, 17:36
clintonman wrote: 18 Jan 2023, 16:12 Here is the rsx plugin with the util.ConReset.

I just saw your last 2 posts just now. I'll try to take a look at your spotlight.
Thanks, got the ConReset to work but it adds a blank? entry in the Command History
Had to add RsApp.Undo() to the end

Code: Select all

thenode = Node.FirstSelected()
util = System.CreateDO("Clintons3D Package/Utility functions")
util.ConReset(thenode, "FOV", thenode + "/Camera", "FOV");
RsApp.Undo()
How do use the following?
util.GetPluginState()
util.SetVertexColor()
Blank entry, that's interesting.

util.GetPluginState() does not work with system loaded dll. it only works with plugin loaded as rsx

VertexStrengthOne.jpg

add a plane to the scene
point edit the plane so it has an Editable shape
set the material vertex strength to 1
run this to set vertex number 3 to blue

Code: Select all

	util = System.CreateDO("Clintons3D Package/Utility functions")
	mesh = Node.FirstSelected() + "/Editable shape";

	//util.FillVertexColor(mesh,"255,0,0",false);//fill all verts with red color

	util.SetVertexColor(mesh, 3, "0,0,255", false);//set vertex #3 to green
make the DiffuseColor black to see only the vertex color
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: Final trueSpace 7.61 Beta 8 Unofficial Update

Post by trueBlue »

clintonman wrote: 18 Jan 2023, 18:24
trueBlue wrote: 18 Jan 2023, 17:36
clintonman wrote: 18 Jan 2023, 16:12 Here is the rsx plugin with the util.ConReset.

I just saw your last 2 posts just now. I'll try to take a look at your spotlight.
Thanks, got the ConReset to work but it adds a blank? entry in the Command History
Had to add RsApp.Undo() to the end

Code: Select all

thenode = Node.FirstSelected()
util = System.CreateDO("Clintons3D Package/Utility functions")
util.ConReset(thenode, "FOV", thenode + "/Camera", "FOV");
RsApp.Undo()
How do use the following?
util.GetPluginState()
util.SetVertexColor()
Blank entry, that's interesting.

util.GetPluginState() does not work with system loaded dll. it only works with plugin loaded as rsx


VertexStrengthOne.jpg


add a plane to the scene
point edit the plane so it has an Editable shape
set the material vertex strength to 1
run this to set vertex number 3 to blue

Code: Select all

	util = System.CreateDO("Clintons3D Package/Utility functions")
	mesh = Node.FirstSelected() + "/Editable shape";

	//util.FillVertexColor(mesh,"255,0,0",false);//fill all verts with red color

	util.SetVertexColor(mesh, 3, "0,0,255", false);//set vertex #3 to green
make the DiffuseColor black to see only the vertex color
Way to go Clinton! :worship:
Way cool!
Can get some really wild results with the Material settings
Attachments
ColorVertices.png
User avatar
clintonman
Captain
Posts: 5430
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Final trueSpace 7.61 Beta 8 Unofficial Update

Post by clintonman »

I found the reason for the blank undo. Running any script will create the blank.
You can try it with an empty script.

I was wondering why when I put an RsApp.Undo() inside a script all by itself, nothing would happen. It was undoing the blank entry the script created.
Clinton Reese

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

Re: Final trueSpace 7.61 Beta 8 Unofficial Update

Post by clintonman »

trueBlue wrote: 18 Jan 2023, 19:06 ...
Way to go Clinton! :worship:
Way cool!
Can get some really wild results with the Material settings
PaintVertexColor.jpg

Thanks, I think you'll like the upcoming vertex paint tool.

Attached is the rsx that has the new copy value that can be used to copy bitmaps or any other value.

util.CopyNodeValue("sourcenode","sourceconn","destinationnode","destinationconn")
Attachments
Clintons3dPlugin.zip
(368.58 KiB) Downloaded 47 times
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: Final trueSpace 7.61 Beta 8 Unofficial Update

Post by trueBlue »

clintonman wrote: 18 Jan 2023, 19:07 I found the reason for the blank undo. Running any script will create the blank.
You can try it with an empty script.

I was wondering why when I put an RsApp.Undo() inside a script all by itself, nothing would happen. It was undoing the blank entry the script created.
I wonder if you could add a RsApp.Undo() to your plugin Utility Function(s) that removes the empty entry?
User avatar
trueBlue
Captain
Posts: 5214
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Final trueSpace 7.61 Beta 8 Unofficial Update

Post by trueBlue »

clintonman wrote: 18 Jan 2023, 19:27
trueBlue wrote: 18 Jan 2023, 19:06 ...
Way to go Clinton! :worship:
Way cool!
Can get some really wild results with the Material settings

PaintVertexColor.jpg


Thanks, I think you'll like the upcoming vertex paint tool.

Attached is the rsx that has the new copy value that can be used to copy bitmaps or any other value.

util.CopyNodeValue("sourcenode","sourceconn","destinationnode","destinationconn")
Oh cool! :worship:
That was going to be my next question
How do you get the vertices number?
User avatar
trueBlue
Captain
Posts: 5214
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Final trueSpace 7.61 Beta 8 Unofficial Update

Post by trueBlue »

clintonman wrote: 18 Jan 2023, 18:03
trueBlue wrote: 16 Jan 2023, 17:50 I still think this color picker could use some updates
I am getting unpredictable results with undoing a click in the Clickable Bitmap Control Panel
Seems on first use undoing does not work at all
Then it seems to work by clicking undo twice, first undo does not seem to do anything
By this I mean, only the Color reverts back to the previous color
The Color aspect settings do not change, only the Color Control
I also note that the Red, Green, and Blue scrubbers and fields need to be changed to not Update On Change
It seems to me that more use of your utility functions could be used with the internal scripts and or additional scripts to make it more bio directional
I did a bunch of tests with the Clickable Bitmap Control and by multiple clicks and dragging I think I can see what you're seeing now.
Question, why "the Red, Green, and Blue scrubbers and fields need to be changed to not Update On Change"
Missed your question about the need to not use "Update On Change"
The scrubbers are not really necessary but the fields are
Each number you add to the field, adds an entry in the Command History
User avatar
clintonman
Captain
Posts: 5430
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Final trueSpace 7.61 Beta 8 Unofficial Update

Post by clintonman »

trueBlue wrote: 18 Jan 2023, 19:44
clintonman wrote: 18 Jan 2023, 19:07 I found the reason for the blank undo. Running any script will create the blank.
You can try it with an empty script.

I was wondering why when I put an RsApp.Undo() inside a script all by itself, nothing would happen. It was undoing the blank entry the script created.
I wonder if you could add a RsApp.Undo() to your plugin Utility Function(s) that removes the empty entry?
Nope, can't find any way to add RsApp.Undo() action to rsx plugin.
Clinton Reese

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

Re: Final trueSpace 7.61 Beta 8 Unofficial Update

Post by clintonman »

Final change to the rsx plugin is the ability to copy a bitmap to the vertex colors
The sample shows normal mesh on the left and the vertex color mesh on the right. The vertex color mesh has 200x200 vertices
The final image shows the zoomed in result, again with original on the left and vertex painted on the right..
BitmapToVertexBefore.jpg
BitmapToVertexAfter.jpg
BitmapToVertexZoomed.jpg
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: Final trueSpace 7.61 Beta 8 Unofficial Update

Post by trueBlue »

clintonman wrote: 20 Jan 2023, 03:15 Final change to the rsx plugin is the ability to copy a bitmap to the vertex colors
The sample shows normal mesh on the left and the vertex color mesh on the right. The vertex color mesh has 200x200 vertices
The final image shows the zoomed in result, again with original on the left and vertex painted on the right..

BitmapToVertexBefore.jpg

BitmapToVertexAfter.jpg

BitmapToVertexZoomed.jpg
Bitmap to vertex colors?
Interesting!
What is the purpose of this other than the obvious?
Would you be able to use your upcoming vertex paint tool on your sample on the right?
Post Reply