Public Member Functions | |
| HRESULT | ConnectTSToSpace ([in] BSTR bstrSpaceName) |
| HRESULT | AttrClean ([in] BSTR bstrSpaceName) |
| HRESULT | HookToScene ([in] BSTR bstrTSScene) |
| HRESULT | SuggestTSStateByAlias ([in] BSTR szAlias) |
| HRESULT | InfoRequestByAlias ([in] BSTR szAlias) |
| HRESULT | XorTypeTSStateByAlias ([in] BSTR szAlias) |
| HRESULT | DeleteTmpTextures () |
| HRESULT | SetBridgeSyncStatus ([in] VARIANT vStatus) |
| HRESULT | SetRefreshRate ([in] VARIANT vFPS) |
| HRESULT | PutActiveFrame ([in] BSTR bstrNodeName,[in] VARIANT vFrame) |
| HRESULT | FlushSyncEvents (void) |
| HRESULT | SetBridgeHalfLoop ([in] VARIANT vEnabled) |
| HRESULT | RsTSEventsStatus ([out, retval] VARIANT *pvEventsBlocked) |
| HRESULT | BlockRsTSEvents ([in] VARIANT vBlockEvents) |
| HRESULT | SynchronizeObject ([in] BSTR bstrObjName) |
| HRESULT | SetBridgeSyncMethod ([in] VARIANT vMethod) |
Root-level name in the scripting engine's name space: tSBridge
|
|
Tell bridge which space should be synchronized with Modeler's scene. This command is called automatically after New Scene with Space.CurrentScene() as the parameter. It creates all the objects that are necessary to connect Modeler’s scene with the given Player scene/encapsulator.
|
|
|
Remove all the bridge's attributes from specified object. It is useful if you want to export an object/s and be sure all the bridge package objects are removed from exported object.
|
|
|
Method reconnect 3D objects between Modeler scene and Player View. This command is called automatically after Modeler or Player loads a scene. You can use it to partially restore the bridge connection after AttrClean method.
|
|
|
Call to execute a Modeler's action. This has the same effect as if you click on a Modeler's button.
// Assign rubber physics material for selected object/s tSBridge.SuggestTSStateByAlias("PhysicsLocalRubberButton");
|
|
|
Call to execute a Modeler's info action. This has the same effect as if you right click on a Modeler's button.
// Display physical properties for selected object/s tSBridge.InfoRequestByAlias("PhysicsLocalRubberButton")
|
|
|
Call to execute a Modeler's action that is specified as a switch. This has the same effect as if you click on a On-Off Modeler's button.
// Turn on or off the physics grafitation/s tSBridge.XorTypeTSStateByAlias("GravitationPadButton");
|
|
|
Method delete all temporary created textures. It is called automatically after each time you start tS7. |
|
|
Set bridge synchronization status. This status is set automatically from desktop preferences, so use it only temporary for speed up your scripts.
|
|
|
Set bridge synchronization refresh rate. This status is set automatically from desktop preferences. It is possible you change it temporary, but it is recommended you change it directly in Desktop preferences object (string ID: /Preferences/Desktop).
|
|
||||||||||||
|
Use this method to put scene or object to specific frame. If autorecord is turned on in Modeler, a new key-frame will be created in next object move, scale or rotation.
// Put Modeler's scene to frame 10 and be sure it is immediatelly done
tSBridge.PutActiveFrame('', 10);
tSBridge.FlushSyncEvents();
|
|
|
Flush all the bridge's synchronization events that are waititing in event queue. You can use this command e.g. after PutActiveFrame if you want be sure the scene or object is in desired frame. |
|
|
Turn on or off the procedural animation support. Use this method only inside your script, as it is set automatically by Desktop preferences object located in /Preferences space.
|
|
|
Use this methid to detect whether Player->Modeler synchronization events are enabled or not.
|
|
|
Block Player->Modeler synchronization events. You can use this method to speed up your scripts.
|
|
|
Execute this method if you want to synchronize object in Player's scene with Modeler's one. Usually this should be done after you block events with BlockRsTSEvents method and you enable them again. See MakeTree object located in My Activities library for an example.
|
|
|
Set bridge synchronization method. This status is set automatically from desktop preferences, so it is recommended to use it only temporary from your scripts.
|
1.3.2