addon_common icon indicating copy to clipboard operation
addon_common copied to clipboard

Render UI in one viewport

Open skarndev opened this issue 5 years ago • 2 comments

Is it possible to restrict the rendering of the UI to a certain view3D space viewport? For example, if launch a CookieCutter based operator in one of the default workspaces called Animation, which has 2 viewports, the UI is rendered randomly there.

skarndev avatar May 03 '20 18:05 skarndev

Great question! I have an addon I had made previously that rendered in two different viewports (two local 3D views). Would love to see that in cookie cutter. I have several use cases for

A) drawing in 3D view and drawing in image editor at same time B) drawing in two 3D views simultaneously C) Drawing only in one 3D View

Perhaps a draw callback could be linked to an area?

patmo141 avatar May 03 '20 20:05 patmo141

Do you mean to say linking a draw callback to an instance of SpaceView3D instead of bpy.types.SpaceView3D? I've never checked if this is actually supported. Also if possible it'd be great to exclude unwanted areas from the operator behavior. E.g. you run a CookieCutter operator in Region 3D and it does not affect Image Editor and so on.

skarndev avatar May 04 '20 16:05 skarndev