06-14-2021, 03:46 PM
(This post was last modified: 06-18-2021, 03:10 PM by remkonoteboom.)
I just created an pull request which does moves some views to use a custom widget first. The basic issues with the VFX module is that the sidebar is configured to directly open a "ViewPanelWdg" into a new tab. This can be seen in the widget_config table width the criteria of:
category = "SideBarWdg"
view = "definition"
This entry defines what the side links will open up when clicked. So what I had to do was remap the definition entry to point instead to a CustomLayout view like this:
This will now use the "vfx.shot.main" view definition in Custom Layouts. The use of custom layouts is much cleaner because you get a nice folder structure for defining the structure of your project. You can also easily add html, css, client side javascript and server side python code into a single view. In this case, the shot view became:
I did this for both the sequence view and shot views and I also added a rudimentary dashboard.
Take a look and ask if anything doesn't make sense. I will continue to do work on this when I can.
category = "SideBarWdg"
view = "definition"
This entry defines what the side links will open up when clicked. So what I had to do was remap the definition entry to point instead to a CustomLayout view like this:
Code:
<element name="shot" icon="FAS_VIDEO" title="Shots" state="">
<display class="LinkWdg">
<widget_key>custom_layout</widget_key>
<view>vfx.shot.main</view>>
</display>
</element>
This will now use the "vfx.shot.main" view definition in Custom Layouts. The use of custom layouts is much cleaner because you get a nice folder structure for defining the structure of your project. You can also easily add html, css, client side javascript and server side python code into a single view. In this case, the shot view became:
Code:
<div class="card vfx_shot_list_top">
<element>
<display class="tactic.ui.panel.ViewPanelWdg">
<title>SHOTS</title>
<search_type>vfx/shot</search_type>
<simple_search_view>shot_custom_filter</simple_search_view>
<view>shot</view>
<use_last_search>false</use_last_search>
</display>
</element>
</div>
I did this for both the sequence view and shot views and I also added a rudimentary dashboard.
Take a look and ask if anything doesn't make sense. I will continue to do work on this when I can.