Unofficial Update Documentation

Share with others..
User avatar
trueBlue
Captain
Posts: 3811
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Unofficial Update Documentation

Post by trueBlue »

clintonman wrote:
04 Dec 2021, 16:00
You have to be careful how you use quotes. If your string has double quotes inside of it you have to use single quotes to define it. And the opposite is also true, if you have a string with single quotes you have to use double quotes to define it.
So, the problem that I am trying to explain is the Error you will get when you copy the ScriptObject.RunCmd from the Command History and paste into a jScript
ScriptObject.RunCmd.png
ScriptObject.RunCmd.png (5.55 KiB) Viewed 501 times
This is happening will all the scripts that use:

Code: Select all

var cmd = '';  <- single quotes

trueSpace uses double quotes

Code: Select all

ScriptObject.RunCmd("kernel package/run script command", "File", "<-Put commands here using single quotes->", "IsBuffer", -1)

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

Re: Unofficial Update Documentation

Post by clintonman »

trueBlue wrote:
04 Dec 2021, 16:30
clintonman wrote:
04 Dec 2021, 16:00
You have to be careful how you use quotes. If your string has double quotes inside of it you have to use single quotes to define it. And the opposite is also true, if you have a string with single quotes you have to use double quotes to define it.
So, the problem that I am trying to explain is the Error you will get when you copy the ScriptObject.RunCmd from the Command History and paste into a jScript
ScriptObject.RunCmd.png
This is happening will all the scripts that use:

Code: Select all

var cmd = '';  <- single quotes

trueSpace uses double quotes

Code: Select all

ScriptObject.RunCmd("kernel package/run script command", "File", "<-Put commands here using single quotes->", "IsBuffer", -1)
In that case you can't 100% trust what you copy from the Command History. JScript doesn't care if you use single or double quotes it just has to follow the rules so if you copy something that doesn't work you'll have to fix it manually.
Confirmed: pressed the "Run Original" button and the code in the Command History is not valid because of the quotes.
Clinton Reese

http://clintons3d.com

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

Re: Unofficial Update Documentation

Post by trueBlue »

clintonman wrote:
04 Dec 2021, 16:00
In that case you can't 100% trust what you copy from the Command History. JScript doesn't care if you use single or double quotes it just has to follow the rules so if you copy something that doesn't work you'll have to fix it manually.
Confirmed: pressed the "Run Original" button and the code in the Command History is not valid because of the quotes.
Sorry, I have to disagree!

1.) We should be able to 100% trust what you copy from the Command History, because this is what trueSpace is generating
Solution: Write the scripts to play nice with trueSpace, and use Double Quotes like trueSpace uses
var cmd = ""
2.) Could this be making trueSpace unstable?

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

Re: Unofficial Update Documentation

Post by clintonman »

trueBlue wrote:
04 Dec 2021, 17:14
clintonman wrote:
04 Dec 2021, 16:00
In that case you can't 100% trust what you copy from the Command History. JScript doesn't care if you use single or double quotes it just has to follow the rules so if you copy something that doesn't work you'll have to fix it manually.
Confirmed: pressed the "Run Original" button and the code in the Command History is not valid because of the quotes.
Sorry, I have to disagree!

1.) We should be able to 100% trust what you copy from the Command History, because this is what trueSpace is generating
Solution: Write the scripts to play nice with trueSpace, and use Double Quotes like trueSpace uses
var cmd = ""
2.) Could this be making trueSpace unstable?
1.) Then do like I said in the first answer and rewrite everything in this form - System.Alert(" \"Hello World\" ")
2.) I don't see how it could make tS unstable
Clinton Reese

http://clintons3d.com

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

Re: Unofficial Update Documentation

Post by clintonman »

clintonman wrote:
04 Dec 2021, 01:21
Potential changes to UU Docs from recent releases.

nov 28 UU

Link Editor Navigator
Ctrl+ icon - RMB = RsTool.Arrow()
Removed - H icon "Hide unselected"
Add
U icon
LMB = Unselect
RMB = Unselect and Close Panels

Infinite lights
Add
Enable Shadow On & Off buttons for VRay only
Rename DirlightShader
Add the modifications to New Scene, Lights, and WS - Default.RsSLgts

Commands for all floating toolbars, Scene ORA modes, Grid modes, Switch Views, Reset View, Look at Selection, and Zoom to Selection
All toolbar buttons updated to use the UUFunctionSet
These new commands will run without the Main 3D Window needing focus unless there is a floating 3D Window that has focus
Add a Hide unselected icon to Workspace toolbars




nov 29 UU

Improved the View from camera script
Will run without the Main 3D Window needing focus unless there is a floating 3D Window that has focus




dec 3 UU

Widgets/UUFunctionSet
Set Camera
Reset View
Look At Selection
Reduced the undo(s) to one undo

UU Dec 5,6
Toolbars 'All - Reset View & Look at Selection, RMB command, add original command'
Removed the unused BottomBar

Camera toolbar




UU dec 10

D3D Material Editor/Inspect icon
Vray Material Editor/Inspect icon
WorkspaceNav/Inspect icon
All of the above, deselect if first selected item is a camera or light?

Rs Main Libraries
Vray Materials
Sequence Alpha Mask
Sequence Image

Vray - Animation scripts
VRay Background
VRay DOF
VRay Environment

Scripts/Commands
Show Object Attribs
Show Object Attribs RMB
Add check before running the Fix NURBS ORA script

Preferences/Cameras
preobjects/Camera1
"Improved all Camera panel button scripts"
More potential changes

UU dec 16
freezeNURBS - Add: RsApp.ClearHistory()

Unglue.xml - Add Utility Function commands
Cut.xml - Add Utility Function command
Show Object Attribs.xml - Fix for NURBS Group

View Widget Transparency
Encircle 'Green' i + Move cursor opens the View Widget Help and View Widget Transparency panel

dec 23
Removed - D3D Render from std
Bake Keyframes - Add Shrink Play Range button script
Animation Preferences/Shrink Play Range button script

D3D Render
Setup
Shrinks the Play Range, if checked
Opens Protect Workspace and runs Backup
Opens a Docked Model View

dec 25
D3D Render - Add check in the Render button script (if Model is not open do nothing), check if a 3D Window is open with an Alert, and modified the panel

Alternate manual process:
Do not press Setup
Open Protect Workspace and press the Backup button
Switch the main view to Model
Open a Workspace 3D Window
Set the Workspace Play Range
Note: The Play Range should be equal or greater than the Model's animation
Press the Render button

dec 27
Protect Workspace
Add check if 3D Window is open with an Alert
Add Set Keyframes script
This will set a Keyframe for every object in your scene

Synchronize
Start - Add check if 3D Window is open with an Alert
Restore - Closes Model before Restoring - Protect Workspace
Add Set Keyframes script
This will set a Keyframe for every object in your scene
that does not have any keyframes

dec 28
D3D Render
Special Mesh Processing
Disabled - Synchronize Object 'Not needed'
Add - Modal Question with option to Close trueSpace
Clinton Reese

http://clintons3d.com

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

Re: Unofficial Update Documentation

Post by clintonman »

Started the next round of doc updates. Working my way backward from the Dec 28 UU release.
Attached are the new D3D Render pages.
Attachments
tS761_UU_Artists_Guide09_pg153154.zip
(435.11 KiB) Downloaded 2 times
Clinton Reese

http://clintons3d.com

Post Reply