- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我想跟踪我的镜头并将 CG 元素添加到它作为我的核弹项目的一部分。为此,我对素材进行了无失真处理并将其写入磁盘以加快处理速度。然而,当我试图重新扭曲书面镜头时(如附图所示),它没有给我原始镜头。我发现 Reformat5
和 Reformat7
没有给我相同的边界框尺寸,即使两个节点相同也是如此。
我的原始素材大小是 1920*1080。去畸变后变成1928*1085。
因此我放置了一个尺寸为 1928*1085 的 Reformat4
节点并将其写入磁盘。在左侧,我再次放置重新格式化节点以将未失真的素材大小调整回 1920*1080,并保留大小为 1928*1085 的边界框,以便执行镜头失真以恢复我的原始素材。
它在左侧工作正常,但如果我在我的书面素材上做同样的事情,边界框尺寸就不一样了。
Reformat7
给出大小为 1924*1083 而不是 1928*1085 的边界框。我在这里错过了什么?我在网上搜索但找不到任何解决方案。请阐明这个问题。
我的核弹脚本如下:
set cut_paste_input [stack 0]
version 10.0 v3
push $cut_paste_input
LensDistortion {
serializeKnob ""
serialiseKnob "22 serialization::archive 9 0 0 0 0 0 0 0 0 0 0 0 0"
distortion1 -0.007498324849
distortion2 0.0008674863493
distortionCenter {-0.002916968195 -0.001372990897}
invertDistortion true
cardScale {1.006676197 1.006676197 1}
a 0.001508030226
b -0.006750627421
c -0.002457624534
analysisStart 1
analysisStop 329
name LensDistortion2
selected true
xpos -451
ypos 651
}
Reformat {
format "1928 1085 0 0 1928 1085 1 undistortedFormat2"
resize none
name Reformat4
selected true
xpos -451
ypos 684
}
set N6eafc00 [stack 0]
Reformat {
resize none
pbb true
name Reformat5
selected true
xpos -451
ypos 745
}
LensDistortion {
serializeKnob ""
serialiseKnob "22 serialization::archive 9 0 0 0 0 0 0 0 0 0 0 0 0"
distortion1 -0.007498324849
distortion2 0.0008674863493
distortionCenter {-0.002916968195 -0.001372990897}
cardScale {0.9934444427 0.9934444427 1}
a -0.0004114751064
b 0.004895505495
c 0.002436506096
analysisStart 1
analysisStop 329
name LensDistortion3
selected true
xpos -451
ypos 782
}
push $N6eafc00
Write {
file F:/Assignments/Nuke/CGComp/footages/undistortedFootage1080p/undistortedFootage1080p.####.exr
file_type exr
name Write7
selected true
xpos -269
ypos 684
}
Reformat {
resize none
pbb true
name Reformat7
selected true
xpos -269
ypos 747
}
LensDistortion {
serializeKnob ""
serialiseKnob "22 serialization::archive 9 0 0 0 0 0 0 0 0 0 0 0 0"
distortion1 -0.007498324849
distortion2 0.0008674863493
distortionCenter {-0.002916968195 -0.001372990897}
cardScale {0.9934444427 0.9934444427 1}
a -0.0004114751064
b 0.004895505495
c 0.002436506096
analysisStart 1
analysisStop 329
name LensDistortion5
selected true
xpos -269
ypos 783
}
最佳答案
您需要使用CopyBBox
节点来解决您的问题。此 Python 命令创建连接的 CopyBBox
节点:
import nuke
nuke.createNode("CopyBBox")
或者您可以使用此命令创建一个与其他节点断开连接的节点:
nuke.nodes.CopyBBox()
CopyBBox
将边界框从 A 输入复制到 B 流。边界框定义了 Nuke 认为具有有效图像数据的帧区域。边界框越大,Nuke 处理和渲染图像所需的时间就越长。
某些 NUKE 操作,例如 Merge
、Blur
或 LensDistortion
可能会导致边界框区域扩大或缩小,因为 NUKE不知道额外的区域将是黑色或其他常量颜色。通常,您可以通过将边界框从输入之一复制到生成的图像来解决此问题,从而切断额外的区域。
nuke.nodes.Transform(scale=1.005, filter="Mitchell")
如果您在右边距处有“拉伸(stretch)像素效果”,请在 Transform
节点中使用 scale=1.005
参数(就在您的 LensDistortion5
节点)。另外,不要忘记使用过滤算法。
关于python - Foundry Nuke 的 Reformat 节点问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46620171/
这个问题在这里已经有了答案: How can I have nice file names & efficient storage usage in my Foundry Magritte data
如何将本地的 h5 模型从 Foundry 导入代码工作簿?我想使用拥抱面库,如下所示,在其文档中,from_pretrained 方法需要预训练模型所在位置的 URL 路径。 理想情况下,我希望将模
假设我使用 cloudfoundry.org 上提供的开源 Cloud Foundry 实现设置了我自己的云。 .我部署的每个应用程序都会作为单独的用户运行吗?或者这里是否使用了 VMWare 的任何
我在云中发布应用程序时的默认时区是什么?如果有这样的选项,我该如何更改时区? 非常感谢对此功能的任何引用。 最佳答案 run.pivotal.io 上的时钟设置为 UTC。如果您要部署到那里,则必须使
我的应用程序需要获取其运行的实例数(在运行时,我的应用程序在我的程序逻辑中使用此信息)。(VCAP_APPLICATION 环境变量无法提供此信息。)直接调用 API 并使用“实例”属性是一种选择,但
我有 3 个应用程序在私有(private) vcap 实例中运行。一个充当面向客户的 Web 应用程序,而另一个是后端系统,一个通过 Web 应用程序使用的 REST 公开数据服务,另一个应用程序通
部署到 Cloud Foundry 的应用程序的多个实例之间是否可以进行通信?我检查了 Cloud Foundry API,但找不到任何提及此主题的内容。我已经尝试过 Hazelcast,但不幸的是,
我正在构建一个 Workshop 应用程序,大量操作人员(> 200)将使用该应用程序进行数据输入。我想实现以下设置: 工作人员将输入现有本体对象的数据。为此,我在对象 View 中嵌入了一个 Fou
有谁知道我如何告诉我的 Cloud Foundry 实例来监控我的健康端点,以便当我的健康端点说应用健康不是状态:UP 时,应用会重新启动? 最佳答案 cf CLI 6.24.0(2017 年 2 月
部署到 Cloud Foundry 的应用程序的多个实例之间是否可以进行通信?我检查了 Cloud Foundry API,但找不到任何提及此主题的内容。我已经尝试过 Hazelcast,但不幸的是,
我正在构建一个 Workshop 应用程序,大量操作人员(> 200)将使用该应用程序进行数据输入。我想实现以下设置: 工作人员将输入现有本体对象的数据。为此,我在对象 View 中嵌入了一个 Fou
当我从 Cloud Foundry blog 中阅读以下内容时,我试图弄清楚如何使用 Micro CloudFoundry 进行开发。 : “无需安装 Web 服务器(Tomcat 等)、运行时(Ja
我有一个文件夹,我会每月上传一个文件。该文件每个月的格式都相同。 第一个问题 想法是将此文件夹中的所有文件连接成一个文件。目前我正在对文件名进行硬编码(文件名[0]、文件名[1]、文件名[2]..),
我想我了解重新分区、配置单元分区和分桶如何影响输出文件的数量,但我不太清楚各种功能之间的相互作用。有人可以帮助填写以下每种情况下我留空的输出文件的数量吗?目的是了解在我混合使用高基数列和低基数列的情况
我有时听到人们提到此 AQE 功能,我想知道如何验证我的工作是否正在使用它。我在代码存储库和代码工作簿中运行转换。 最佳答案 这会在作业的环境详细信息选项卡中注明。 导航到构建页面 在 Build 页
我的 Foundry 实例中有一个使用增量计算的管道设置,但由于某种原因没有达到我的预期。即,我想读取我的转换的先前输出并获取日期的最大值,然后仅在此最大日期之后立即读取数据的输入。 出于某种原因,它
我可以用apt-get或 Cloud Foundry buildpack 中的其他包管理器或 .profile应用程序附带的脚本;如果可以,我该怎么做?我希望以与 dockerfile 中相同的方式执
我们正在寻找 Foundry 平台中是否有一个工具可以让我们拥有一个字段描述列表,并且当数据集构建时,它可以自动填充这些描述。这是否存在?如果存在,该工具叫什么? 最佳答案 如果您将您的代码存储库升级
是否可以将应用程序的文件下载到我的本地 PC,即执行与“推送”相反的操作? 最佳答案 只要您的应用程序成功完成暂存(即构建包运行并完成),您就应该能够下载由 CF 构建的 Droplet。这将包含您的
我有一个由对象支持的 Foundry Form,能够对其进行更改。我需要授予我的同事什么权限才能编辑表单?表单上的编辑器是否足够,或者他们是否还需要成为对象的编辑器? 最佳答案 要创建表单,您需要在表
我是一名优秀的程序员,十分优秀!