Push modelside buttons from workspace

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

Push modelside buttons from workspace

Post by clintonman »

The SDK (structIRiTSBCommand.html) shows a command sample for setting physical property on modelside :

Code: Select all

// Assign rubber physics material for selected object/s
    tSBridge.SuggestTSStateByAlias("PhysicsLocalRubberButton");
I found the other possibilities by downloading Hexplorer
http://sourceforge.net/projects/hexplorer/" onclick="window.open(this.href);return false;

and running it on the tsxapi.dll file. Do a search for "Button" and one by one can find the aliases for all the modelside buttons. Also works with items found by searching for "Panel".
Clinton Reese

http://clintons3d.com
froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: Push modelside buttons from workspace

Post by froo »

Hey Clinton. That's pretty cool. Do we need a Model side window open
in order for tS to display the button's dialog window?
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Push modelside buttons from workspace

Post by clintonman »

yes, you have to have a model side window open to respond to the buttons or see anything. It's just like physically pushing the button, but with code. I was looking for a way to get some model space tools into workspace, but most of the tools I was interested in require user interaction to work.
Clinton Reese

http://clintons3d.com
User avatar
DesignDevil
Master Chief Petty Officer
Posts: 500
Joined: 22 May 2009, 08:52
Type the number ten into the box: 0
Location: Neuruppin, Germany, Earth.
Contact:

Re: Push modelside buttons from workspace

Post by DesignDevil »

WOW, this sounds very interesting. Is this also usefull or usable from within a tS6.6 Plugin?
I still use TrueSpace 6.6
Link: My Youtube Channel
Link: www.DesignDevil.de - Plugins, Tutorials and more about TrueSpace 6.6
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Push modelside buttons from workspace

Post by clintonman »

DesignDevil wrote:WOW, this sounds very interesting. Is this also usefull or usable from within a tS6.6 Plugin?
I doubt it. Maybe if the source code was ever released or there is some way to pass messages back and forth between workspace and modelspace. I have no ideas at this time.
Clinton Reese

http://clintons3d.com
Post Reply