Amoursol / DynamoViewport

A simple view extension for visualizing Dynamo geometry.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DynamoViewport

DynamoViewport is a Dynamo view extension that instantiates a CEF browser window. The browser runs a three.js scene that displays Dynamo geometry via the render package data. This project began as an experiment originally researched during a 2017 recharge sprint. It is a WIP repo in early exploratory development. Feel free to fork and make pull requests!

Viewport Demo Video

Examples:

View Extensions Panel (current master) IMG

Library Panel IMG

Transparent Window IMG

Usage IMG

CEF Sharp

CEF is either initialized by

  • DynamoCore in DynamoSandbox
  • Revit in Dynamo for Revit 2020+
  • Possibly another host application or plugin that is using CEF in the same process

Dynamo Viewport is exclusively built against DynamoCore v2.0 as GPU rendering was disabled during CEF initialization in Dynamo 1.3.X and older. The master branch is currently built against DynamoCore v2.7+, for legacy core support see additional branches. The latest Dynamo NuGet dependency specs can be found here.

Build/Install/Run Viewport

  • Clone repo
  • Build the solution using Visual Studio or MSBuild
  • This should populate the C:\..\DynamoViewport\src\ViewportViewExtension\ViewportViewExtension\DynamoPackage\Viewport package folder.
    • This Viewport folder should be copied to the appropriate Dynamo packages folder on your system manually, or
    • The package can be automatically coped by modifying this post-build step, update the Dynamo Core version in the path accordingly
  • If built and copied successfully the Launch Viewport menu option should appear under the View tab on the main Dynamo toolbar

Debugging

External chrome debugger window will populate automatically when running dev builds.

CEF Debugging: http://localhost:8088/

About

A simple view extension for visualizing Dynamo geometry.

License:MIT License


Languages

Language:JavaScript 69.3%Language:C# 29.0%Language:HTML 1.2%Language:CSS 0.5%