tSBridge.AttrClean(Space.CurrentScene())

Smart people ~ Great Scripts
Post Reply
User avatar
trueBlue
Captain
Posts: 2930
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

tSBridge.AttrClean(Space.CurrentScene())

Post by trueBlue »

Model - Load Clock.scn
Switch to:
Workspace - Save to Library = 12.65 MB
Workspace - Run tSBridge.AttrClean(Space.CurrentScene())
Workspace - Save to Library = 8.74 MB

Another option:
Workspace - Run and Stop 3D Record
Workspace - Save to Library as RsRcd = 2.58 MB

When I Load a RsRcd file and then Generate a new Scene, I do not get the usual Windows Message. Nice!

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

Re: tSBridge.AttrClean(Space.CurrentScene())

Post by clintonman »

Didn't know you could do that. Big savings on disk space.
One more bit:
Clock.scn original size = 3.91 MB

location note:
trueSpace761\tS\Library\Scenes.scl\Clock.scn
Clinton Reese

http://clintons3d.com

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

Re: tSBridge.AttrClean(Space.CurrentScene())

Post by trueBlue »

Wow that is crazy!
Nevertheless I wonder if that command would help in your Exporters?

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

Re: tSBridge.AttrClean(Space.CurrentScene())

Post by trueBlue »

Using the RsViewPlugin.rsx plugin I can verify what is removed (Hidden) from the Sphere object, that has been animated in Model, when running the following commands:

Code: Select all

tSBridge.FlushSyncEvents()
tSBridge.AttrClean(Space.CurrentScene())
Before
Before.PNG
After
After.PNG
The tSObj is present when creating a Workspace RsObj

You can also run it on a selected object:

Code: Select all

tSBridge.FlushSyncEvents()
tSBridge.AttrClean('')
You do not have the required permissions to view the files attached to this post.

Post Reply