Jump to content
View in the app

A better way to browse. Learn more.

3D-Modellbahn Studio

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Hallo @Neo,

wenn ich über die Schnittstelle
{"jsonrpc": "2.0", "method": "layout.invokeScript", "params": "a=layout:getEntityByName('Quader') return a.transformation.position", "id": 1}
schicke, bekomme ich die Position dem "Quader" zurück.

Wenn nun aber mein Objekt nicht Quader sondern 20' Container (1542D00E-B6E2-4B85-B23E-16CC8D183174) ist, müße ich doch
{"jsonrpc": "2.0", "method": "layout.invokeScript", "params": "a=layout:getEntityByName('20' Container') return a.transformation.position", "id": 1}
schicken (?)
Dies ergibt aber eine Fehlermeldung (error:code:-32602 message:Invalid params) (für die ich sogar ein gewisses Verständnis entwickeln kann [ein ' zu viel])

Wie bekomme ich nun die Position von 20' Container?

Gruß
EASY

Edited by EASY

Hallo EASY,

du musst Sonderzeichen in deinem String (Objektname) escapen. Füge einen Backslash vor dem Hochkomma hinzu.

Viele Grüße,

Neo

  • Author

Hallo,

vor 43 Minuten schrieb Neo:

du musst Sonderzeichen in deinem String (Objektname) escapen. Füge einen Backslash vor dem Hochkomma hinzu.

{"jsonrpc": "2.0", "method": "layout.invokeScript", "params": "a=layout:getEntityByName('20\' Container') return a.transformation.position", "id": 1}

...führt leider nicht zum gewünschten Ergebnis...

{"jsonrpc": "2.0", "method": "layout.invokeScript", "params": "a=layout:getEntityByName('20\\' Container') return a.transformation.position", "id": 1}

... dann kommt die Position zurück :)

Gruß
EASY

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.