View notification
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-05-12
09:01 AM
- last edited on
2024-09-24
09:52 AM
by
Doreena Deng
2015-05-12
09:01 AM
Is there a notification available for when a user changes the 3D view, as in a pan, rotate, zoom etc? A camera modification in the 2D plan view triggers a notification, but I can't see how to catch it in the 3D view. Suggestions appreciated.
5 REPLIES 5
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-06-03 01:04 AM
2015-06-03
01:04 AM
I'm not aware of any notification for 3d view cameras (but there might possibly be a way I don't know about). For my plugin I check the ArchiCAD camera position from the timer of a dialog (DG_MSG_NULL).
Paul
Paul
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-06-24 09:26 AM
2015-06-24
09:26 AM
Thanks for the feedback. I ended up doing a similar thing: polling camera transform in a bg thread.
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-07-10 09:12 AM
2015-07-10
09:12 AM
Actually I think your way is better. I'm getting all sorts of stability problems running worker threads in an AddOn. So thanks again for the suggestion.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-07-10 12:48 PM
2015-07-10
12:48 PM
MarkHenryC wrote:Perhaps this has changed, but as far as I know a worker thread shouldn't attempt to interact with ArchiCAD through the API. The API is currently designed for add-ons running on a single thread and running only when ArchiCAD specifically invokes them. Attempting any API access outside of that context is likely to cause instability. Perhaps someone for GS could comment?
Actually I think your way is better. I'm getting all sorts of stability problems running worker threads in an AddOn. So thanks again for the suggestion.
Ralph Wessel BArch
Central Innovation
Central Innovation
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-07-10 09:59 PM
2015-07-10
09:59 PM
Thanks for that info, Ralph. That would certainly explain some problems I'm having (usually in the kernel/context switching area).