cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
GaborHorvath
Participant

Refreshing / redrawing the 3D window

Hi,

 

Does anybody know if it is possible to refresh the 3D view after positioning the camera? If I set the camera from my addon I can do a rebuild, but that can cost a lot in case of having larger models. The redraw feature of the API does not seem to work for this case, so far I did not find any solution just to call rebuild. Sure when I move manually the model there is no rebuild all the time, otherwise the 3d performance would be really bad even on smaller models, not just on large ones.

 

Thanks!

2 Replies 2
Tamas Polyak
Graphisoft
Graphisoft

Hi Gábor,

What do you use to move the camera? Could you post some code snippets?

 

Thanks,
Tamás

GaborHorvath
Participant

Hi,

 

Basicalliy we use ACAPI_View_Change3DProjectionSets. Something sure happens, because after the API call if I manually rotate the model slightly, then suddenly the view jumps where it should have been after the API call. If we call ACAPI_View_Rebuild actually it works, just rebuilding large models is not the best, ACAPI_View_Redraw does not seem to do anything. Actually if I do not change the view manually, I just try to place a column for example, then it goes in the model where I clicked. So the repositioning really happens after I manually adjust something regarding the camera or view options like switching from shaded to wireframe or something like that.

 

Please let us know if there is another function we can use for setting the camera.

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!

Video Thumbnail