This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[-- | |
Camera Sensor Database v1 - 2024-05-29 05.30 PM (UTC -3) | |
Database By: Jacob Danell <[email protected]> | |
Fusion Studio GUI By: Andrew Hazelden <[email protected]> | |
Overview: | |
Apply camera sensor information to BMD Fusion Studio based Camera3D, uCamera, CameraTracker, Renderer3D, and uRenderer nodes. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_correct_position(tool): | |
"""Get position of a tool that is usable for FlowView positions""" | |
result = tool.SaveSettings() | |
for tool in result["Tools"].values(): | |
pos = tool["ViewInfo"]["Pos"] | |
return pos[1], pos[2] | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local json = require("dkjson") | |
function get_registry_info() | |
local data = {} | |
for _i, registry in ipairs(fusion:GetRegList()) do | |
data[registry.ID] = {} | |
for k, v in pairs(fusion:GetRegAttrs(registry.ID)) do | |
table.insert(data[registry.ID], k) | |
end | |
end |