这是用户在 2025-7-19 13:57 为 https://insydium.notion.site/Question-02ed879ec41c4f67abf65fd409431cc0 保存的双语快照页面,由 沉浸式翻译 提供双语支持。了解如何保存?
免费获取 Notion
页面图标

Question  问题

Question  问题

The Question layer is used to set up conditions which, if passed, will trigger actions.
问题层用于设置条件,如果通过,将触发操作。

Question  问题

The first step is to assign what kind of question will be asked using the options: If (the default), Else If or Else.
第一步是使用以下选项指定要询问的问题类型: If (默认)、 Else IfElse。

If  如果

The starting question of any hierarchy must always use the If option.
任何层次结构的起始问题都必须始终使用 “如果” 选项。
If you want to set the particle color when it gets to a specific age (older than 90 frames, for example), you would use an If question of the particle’s age, along with a Set Color action as its child.
如果您想在粒子达到特定年龄(例如,超过 90 帧)时设置粒子颜色,您可以使用粒子年龄的 “如果” 问题,并将 “设置颜色” 操作作为其子操作。
The question is asked every frame and the Set Color action is only triggered when the condition of the question is passed.
每帧都会询问该问题,并且只有当问题的条件满足时才会触发 “设置颜色” 操作。
This particle age question is set to the default If option. The hierarchy translates to: ‘If the particle age is greater than 90 frames, then set the color to blue.’
此粒子年龄问题设置为默认的“ 如果” 选项。其层级结构翻译为:“如果粒子年龄大于 90 帧,则将颜色设置为蓝色。”

Else If  否则,如果

Else If questions can only be used when following an If question.
Else If 问题 只能在以下情况下使用 “如果 ”问题之后
You can think of it as a follow-up question, which is only asked if the answer to the preceding If question is ‘no’.
您可以将其视为一个后续问题,仅当前一个 “如果 ”问题的答案为“否”时才会询问。
An Else If question can be added to the previous example to trigger more particle color changes at another specified particle age.
可以将 Else If 问题添加到前面的示例中,以在另一个指定的粒子年龄触发更多粒子颜色变化。
When each particle is less than 60 frames old, in this animation, the first If question is not passed. Therefore, the follow-up Else If question is asked, but this too fails to pass. As a result, the particle’s color doesn’t change. After frame 60, the first If question is still not passed. However, now the follow-up Else If question is passed and the particles are turned pink. After frame 90, the first If question is finally passed and the particles are turned blue.
当每个粒子少于 60 帧时,此动画中的第一个 If 问题未通过。因此,后续的 Else If 问题被提出,但同样未能通过。 因此,粒子的颜色不会改变。 在第 60 帧之后,第一个 If 问题仍然没有通过。但是,现在后续的 Else If 问题已经通过,并且粒子变成了粉红色。 在第 90 帧之后,第一个 If 问题终于通过,粒子变为蓝色。

Else  别的

Else questions can only be used when following an If or Else If question.
Else 问题只能在 IfElse If 问题之后使用。
This question is only asked when any preceding questions are answered ‘no’.
仅当任何先前问题的答案为“否”时才会问此问题。
An Else question can be added to the previous example to create a final layer of particle color change.
可以在前面的示例中增加一个 Else 问题,以创建粒子颜色变化的最后一层。
There are now 3 color changes in this scene. Prior to frame 60, the first If question is asked and not passed. Therefore the following Else If question is asked, but this too is not passed. So the final Else condition is asked, which triggers the green Set Color action. After frame 60, the first If question is not passed, so the following Else If question is asked. This time the condition is passed and the pink Set Color action is triggered. After frame 90, the first If question is passed, so the blue Set Color action is triggered.
此场景中现在有 3 个颜色变化。在第 60 帧之前,第一个 If 条件语句被询问,但未通过。因此,接下来的 Else If 条件语句被询问,但同样未通过。 因此, 询问最后的 Else 条件,这会触发绿色的 Set Color 操作。 在第 60 帧之后,第一个 “If” 问题未通过,因此会询问下一个 “Else If” 问题。这次条件通过了,并触发了粉色的 “Set Color” 动作。 在第 90 帧之后,第一个 If 问题通过,因此触发蓝色的 Set Color 动作。
Note: The order of Question layers is very important.
注意: 问题层的顺序非常重要。
In the above example, you may ask why the last color change in the viewport (blue) is first on the questions list.
在上面的例子中,您可能会问为什么视口中的最后颜色变化(蓝色)在问题列表中排在第一位。
To understand this you could consider an example that demonstrates bad logic.
为了理解这一点,你可以考虑一个体现错误逻辑的例子。
Here, the question order has been switched, so the AGE > 2s is 1st and the AGE > 3s is 2nd. The problem here is that the lower age question comes first in the list. This means that if the answer is true for the 2nd question, it will always be true for the 1st question as well. As a result, as soon as the particles get to 60 frames old, the first question will pass and the second question will be ignored. When the particles get to 90 frames old, the first question will still pass and the second will continue to be ignored. The logic does not work with this question order and the 2nd question will never be asked.
这里,问题顺序已经切换,因此 AGE > 2s 是第一名, AGE > 3s 是第二名。 这里的问题是,较低年龄的问题排在了列表的第一位。 这意味着如果第二个问题的答案是正确的,那么第一个问题的答案也将始终是正确的。 因此,一旦粒子达到 60 帧,第一个问题就会通过,而第二个问题将被忽略。 当粒子达到 90 帧时,第一个问题仍会通过,而第二个问题将继续被忽略。 这个提问顺序的逻辑不通,第二个问题永远不会被问到。
Due to the bad logic of this question hierarchy, the 2nd condition is never asked and, in this animation, the particles remain pink after their first color change.
由于这个问题层次结构的逻辑性不好,所以从来没有问过第二个条件,并且在这个动画中,粒子在第一次颜色变化后仍然是粉红色的。

Operator  操作员

Operators can be used to layer up questions so that conditions of multiple data types must be met to trigger actions.
可以使用运算符对问题进行分层,以便必须满足多种数据类型的条件才能触发操作。
In the preceding examples, the questions have driven a color change based on one data type; particle age.
在前面的例子中,问题根据一种数据类型驱动了颜色的变化:粒子年龄。
But what if you wanted to test for age AND radius?
但是如果您想测试年龄和半径怎么办?
To do that, you would add a new question as a child of the first and choose one of the Operator options.
为此,您需要添加一个新问题作为第一个问题的子问题,然后选择其中一个运算符选项。
These are: AND, AND NOT, OR and OR NOT.
这些是: ANDAND NOT 、 OROR NOT
The second question is a child of the first. Its Operator function is set to AND. Now both the Age AND the Radius question must pass for the action to be triggered. Note: The Set Color action is a child of the 2nd question.
第二个问题是第一个问题的子问题。其运算符函数设置为 AND 现在, 年龄半径问题都必须通过才能触发操作。 注意: “设置颜色” 操作是第二个问题的子问题。

AND / AND NOT  与/与非

These operator modes require both questions to be passed for the action to be triggered.
这些操作员模式需要传递两个问题才能触发操作。
The difference is demonstrated in the examples below.
以下示例展示了其差异。
Here, the Set Color action is only triggered when the particles are older than 45 frames AND have a radius greater than 22cm.
这里, 仅当粒子超过 45 帧并且半径大于 22 厘米时才会触发 “设置颜色” 操作。
In this animation, the Set Color action is only triggered when the particles are older than 45 frames AND NOT having a radius greater than 22cm.
在此动画中,当粒子超过 45 帧且半径不大于 大于22厘米。

OR / OR NOT  或/或非

These operators require one of the questions to be passed for the action to be triggered.
这些操作符需要传递其中一个问题才能触发操作。
The difference is demonstrated in the examples below.
以下示例展示了其差异。
The Set Color action is triggered when the particles are older than 45 frames OR have a radius greater than 22cm.
当粒子超过 45 帧或半径大于 22 厘米时,会触发 “设置颜色” 操作
The Set Color action is triggered when the particles are older than 45 frames OR NOT having a radius greater than 22cm.
当粒子超过 45 帧或半径不大于 22 厘米时,将触发 “设置颜色” 操作

Category  类别

Set as Particle, by default, this is what you are questioning for the condition.
设置为粒子 ,默认情况下,这就是您对条件的质疑。
The above examples have all used the Particle category, which give options like Age, Color and Radius.
上述示例均使用了粒子类别,该类别提供了年龄、颜色和半径等选项。
The alternatives are: Document and Math.
替代方案有: DocumentMath
Most types share the same parameter options (such as Condition, Value and Check Once); these are explained at the bottom of this page.
大多数类型共享相同的参数选项(例如 ConditionValueCheck Once );这些将在本页底部进行解释。
Parameters relating to individual Data options are explained below.
与各个数据选项相关的参数解释如下。

Data  数据

The Data option is the available data that can be used from the chosen Category.
数据选项是可从所选类别中使用的可用数据。
Each Category has a different set of Data options available to it.
每个类别都有一组不同的可用数据选项。

Document question type  文档问题类型

The possible Data options for the Document Question type.
可能的数据选项 文档问题类型。

Frame  框架

Use this option to trigger actions at a specified scene Frame number.
使用此选项可在指定场景帧号处触发动作。
This setting opens parameters for Condition, Value and Check Once.
此设置打开条件 检查一次的参数。

Camera Distance  相机距离

The distance to the camera.
到相机的距离。
This setting opens a Camera field, where you can drop a scene camera, and the Condition, Value and Check Once parameters.
此设置打开一个摄像机字段,您可以在其中放置场景摄像机以及条件 检查一次参数。
This scene uses a Document Category in Camera Distance data mode. When the particles are less than 300cm away from the camera, the Set Color action is triggered.
此场景使用 “相机距离” 数据模式 文档类别 。当粒子距离相机小于 300 厘米时, 将触发 “设置颜色” 操作。

Camera FOV  相机视野

This asks if a particle is within the specified camera’s FOV (Field of View).
这会询问粒子是否位于指定相机的 FOV(视野)内。
This will also open up 3 additional parameters: Camera field, Widen FOV, which allows the degree searched to be widened, and the Check Once option.
这还将打开 3 个附加参数: 相机字段、 扩大 FOV (允许扩大搜索的程度)和检查一次选项。
When the particles enter the selected camera’s FOV, the question is passed and their color is set to blue.
当粒子进入选定相机的 FOV 时,问题即被通过,并且其颜色被设置为蓝色。

Object Distance  物距

This works like the Camera Distance mode, explained above.
其工作原理类似于上面解释的相机距离模式。
The difference is, as well as the usual parameters, this includes an additional Mode menu with more options.
不同之处在于,除了通常的参数外,这还包括一个具有更多选项的附加模式菜单。

Mode  模式

This has the following settings: Points - distance to the nearest vertex. Position - distance to the object’s world location. Polygon - distance to the nearest polygon. Volume - distance to the nearest polygon, including volume test, where <0 is inside the object.
它具有以下设置: ——到最近顶点的距离。 位置 ——到物体世界位置的距离。 多边形 ——到最近多边形的距离。 体积 - 到最近多边形的距离,包括体积测试,其中 <0 位于对象内部。
Here the Object Distance data is set to Volume mode. This tests whether particles are inside the volume of the sphere and, if they are, their color is set to blue.
这里, 物体距离数据设置为体积模式。这将测试粒子是否位于球体体积内,如果位于,则将其颜色设置为蓝色。

Time  时间

The document scene time.
文档场景时间。
Whether this is in seconds or frames will depend upon your Cinema 4D unit preferences.
这以秒还是帧为单位取决于您的 Cinema 4D 单元偏好。
By default this is set to frames.
默认情况下,它设置为框架。
As well as Condition and Check Once, this has the Time parameter.
除了 ConditionCheck Once 之外,它还具有 Time 参数。

Math question type  数学题型

The possible Data options for the Math Question type.
数学可能数据选项 问题类型。

Value  价值

A constant value, set in the UI (User Interface), which can be set from expressions or animation.
在 UI(用户界面)中设置的常量值,可以从表达式或动画中设置。
The Value is keyframed from 0 (zero) to 10 over the course of the scene. With the Condition set to Greater than the Value of 5, the particles turn blue when the keyframed Value exceeds 5.
在场景过程中,值的关键帧范围为 0(零)到 10。将 条件 设置为 “大于5 ,则当关键帧超过 5 时, 粒子将变为蓝色

Random  随机的

A random value generated from within the Min and Max values.
最小值最大值中生成的随机值。
This can be made random for each particle, by enabling the Particle ID option.
通过启用粒子 ID 选项,可以使每个粒子随机化。
Use the Time Variation setting to control whether the random number is constant or if it should change every frame.
使用时间变化设置来控制随机数是否恒定或者是否每帧都改变。
With Time Variation set to none, the random number will remain the same throughout the scene.
时间变化设置为无时, 随机数将在整个场景中保持不变。
In Document mode, the random number will change every frame, globally, for all particles.
文档模式下,所有粒子的随机数将在每一帧中全局改变。
In Particle mode the random number will change every frame, per particle.
粒子模式下,每个粒子的每帧随机数都会改变。
With Time Variation set to None and with Particle ID active, all particles are given an individual random number of between -1 and 1. The Condition is set to Greater than 0 (zero). This means that only particles that have a random number of above 0 (zero) will have their color set blue, resulting in half of them remaining orange.
“时间变化” 设置为 “无”“粒子 ID” 处于活动状态时,所有粒子都会被赋予一个介于 -1 和 1 之间的单独随机数。 “条件” 设置为大于 0(零)。 这意味着只有随机数大于 0(零)的粒子才会将其颜色设置为蓝色,导致其中一半保持为橙色。

Spline  样条线

A value based on a spline curve setting, where the x axis is time, based on the particle or the document time.
基于样条曲线设置的值,其中 x 轴表示时间,基于粒子或文档时间。
Here the Data mode is set to Spline and the Time Variation to Document. This means the x axis of the curve represents the full scene time and the y axis, the value. Following the curve up from left to right, the y axis reaches a value of 0.5 at the halfway mark of the scene, exactly, which is 80 frames. This is when the question is passed and the particles change to blue.
这里的数据模式设置为 “样条曲线” 时间变化设置“文档”。 这意味着曲线的 x 轴代表整个场景的时间,y 轴代表数值。沿着曲线向上 从左到右,y 轴在场景的中间位置达到 0.5,恰好是 80 帧。此时问题已通过,粒子变为蓝色。

Variable  多变的

This is a value taken from a user variable, or a variable that is defined within a script (if local to the question, e.g. from an earlier or parent script).
这是从用户变量或在脚本中定义的变量(如果是问题的本地变量,例如来自早期或父脚本)获取的值。
The variable name must be entered correctly in the Name field.
必须在名称字段中正确输入变量名称。
In this question hierarchy there is a Variable layer called ‘ScaleUp’. The question is set to the Math category using a Variable as the Data type. The variable name ‘ScaleUp’ has been entered into the Name field. The question is asking whether the value contained within the ScaleUp variable layer is greater than 0 (zero). If so, the question will pass and the Set Color action activated.
在这个问题层次结构中,有一个名为“ScaleUp”的变量层。 问题设置为数学类别,使用变量作为数据类型。 变量名称“ScaleUp”已输入到名称字段中。 问题是询问 ScaleUp 变量层中包含的值是否大于 0(零)。 如果是,则问题将通过,并且 “设置颜色” 操作将被激活。

Wave  海浪

A sine-based wave, with the range -100 to 100, where the value varies based on the Frequency amount and the Document or Particle Time Variation option.
基于正弦的波,范围为 -100 到 100,其中值根据频率量和文档粒子时间变化选项而变化。
This mode is useful for creating oscillating effects, like regularly flashing particles.
此模式对于创建振荡效果很有用,例如有规律地闪烁的粒子。
The effects of the sine wave are clear here. When the wave value is above 80, the color is set to blue. The Else question sets it back to orange once the wave value dips below 80. In the Document Time Variation mode, the action is triggered globally.
正弦波的效果在这里清晰可见。当波形值高于 80 时,颜色设置为蓝色。 当波形值低于 80 时, “Else” 问题会将其重新设置为橙色。在 “文档时间变化” 模式下,此操作会全局触发。
This time, the Variation Mode is set to Particle. Here, the frequency of the wave is dependent upon the particle age. The result is the time of the blue color change is different for each particle, depending on when they were born.
这次, 变化模式设置为粒子。 这里, 波的频率取决于粒子年龄。 结果是每个粒子的蓝色变化时间不同,取决于它们的诞生时间。

Particle question type  粒子问题类型

The possible Data options for the Particle Question type.
可能的数据选项 粒子问题类型。

Age  年龄

The particle’s age, in seconds.
粒子的年龄(以秒为单位)。

Color  颜色

The particle’s color; a Vector setting of R, G, B or Brightness.
粒子的颜色; RGB亮度矢量设置。
All particles are born with a radius of 15cm. The Set Radius action increases this radius to 60cm. However, the If Color question dictates that it is only applied to particles with a color brightness of above 0.9. Note: The weight of the Set Radius action is set to only 12%, which creates the scaling up effect.
所有粒子的半径均为 15 厘米。 “设置半径” 操作可将此半径增加到 60 厘米。然而, “颜色” 问题指出,该操作仅适用于具有颜色的粒子 亮度在0.9以上。 注意: 设置半径操作的权重仅设置为 12%,从而产生放大效果。

Count  数数

The total number of particles.
粒子总数。

Fluid Density  流体密度

The calculated fluid density around a particle.
计算出的粒子周围的流体密度。
Note: This data is only generated when using a fluid solver, such as nxFluid.
注意:仅在使用流体解算器(例如 nxFluid)时才会生成此数据。
This If Fluid Density question hierarchy means that particles with a fluid density of less than 0.9 have their color set to pink.
如果流体密度问题层次结构意味着流体密度小于 0.9 的粒子颜色设置为粉红色。

Travelled  已旅行

The total distance currently travelled by the particle.
粒子当前行进的总距离。

Emitter  发射器

A true/false for if the particle’s emitter is (or is not) in the Emitter list shown.
粒子发射器是否在显示的发射器列表中,为真/假。
Use this to isolate the affects of an action to specific emitters.
使用此功能可以隔离动作对特定发射器的影响。
Here there are two emitters called Left (orange) and Right (blue). By default, the particles from both emitters are affected by the nxQuestion list.
这里有两个发射器,分别为(橙色)和(蓝色) 默认情况下,两个发射器的粒子都会受到 nxQuestion 列表的影响。
With the addition of an AND Emitter question, now only particles from the right hand emitter are affected.
加上 AND 发射器问题,现在只有右侧发射器的粒子受到影响。

Field  场地

The field (falloff) value for the particle.
粒子的场(衰减)值。
This mode requires an active field to be present within the nxQuestion object Fields tab.
此模式要求 nxQuestion 对象字段选项卡中存在活动字段。
In this animation, contact with the Spherical field is enlarging the particles.
在这个动画中,与球形场的接触正在扩大粒子。

Flags  旗帜

If any of the shown flags (Hit Object, Hit Particle, Changed Group, Stuck and Frozen) are enabled for the particle.
如果为粒子启用了任何显示的标志( 命中对象 命中粒子 更改组 卡住冻结 )。
Here, with the Hit Object flag enabled, those particles hitting the Torus have their color changed to orange.
在这里, 启用 “命中对象” 标志后,命中圆环的粒子的颜色将变为橙色。

Group  团体

The group the particle is in (0 - zero - means no group assigned, default).
粒子所在的组(0 - 零 - 表示未分配组,默认)。
In this scene, only particles from Particle Group 2 are affected by the action and have their Radius set to 8cm.
在这个场景中,只有来自粒子组 2 的粒子受到动作的影响,并且它们的半径设置为 8 厘米。

ID

The particle’s unique ID.
粒子的唯一 ID。
In this scene, the particle IDs have been made visible, via the xpEmitter Display tab options. The question is set to Particle ID with value set to 4. This means the Set Radius action only affects the particle with this ID.
在此场景中,粒子 ID 已通过 xpEmitter 的 “显示”选项卡选项显示 问题设置为 “粒子 ID” ,值设置为 4。这意味着 “设置半径” 操作仅影响 具有此 ID 的粒子。

Life  生活

The life span of the particle.
粒子的寿命。

Mass  大量的

The mass of the particle.
粒子的质量。

Neighbors  邻居

How many particles are within a Distance setting around the particle.
粒子周围距离设置内有多少个粒子。
Here, with the Neighbors setting, only particles that have more than 2 (the Value setting) neighbors within the Distance value of 20cm, are set to orange.
这里,通过邻居设置,只有在距离值 20 厘米内有超过 2 个(设置)邻居的粒子才会设置为橙色。

Position  位置

The world position of the particle per Vector: X, Y or Z.
每个向量的粒子的世界位置: XYZ。

Radius  半径

The radius of the particles.
粒子的半径。

Rotation  旋转

The rotation of the particles, in the heading (H), pitch (P) or bank (B).
粒子在航向 ( H )、俯仰 ( P ) 或倾斜 ( B ) 方向的旋转。

Speed  速度

The particle’s speed.  粒子的速度。

UVW  紫外线

The particle’s UVW components (picked from X, Y and Z).
粒子的 UVW 分量(从 X、Y 和 Z 中选择)。
To activate UVW data, the xpEmitter must be setup to emit from an object texture.
要激活 UVW 数据,必须将 xpEmitter 设置为从对象纹理发射。
In addition, the UV Data must be checked in the Extended Data - General Data tab.
此外,必须在 “扩展数据”-“常规数据” 选项卡中检查 UV 数据
Animation to demonstrate the effect of the Data setting of UVW, with particles set to change color to orange should their UVW on the X axis be less than 0.5.
动画演示了 UVW 数据设置的效果 ,其中当粒子在 X 轴上的 UVW 小于 0.5 时,粒子的颜色将变为橙色。
xpEmitter set up, with UV Emission Data enabled.
xpEmitter 设置,带有紫外线发射 数据已启用。

Velocity  速度

The particle’s velocity components (picked from the Vector setting of X, Y and Z).
粒子的速度分量(从 XYZ向量设置中选取)。

Vertex Weight  顶点权重

The particle’s assigned vertex weight, usually set on emission.
粒子的指定顶点权重,通常在发射时设置。
This data is not generated by default.
默认情况下不会生成此数据。
Setting this up requires the following steps.
设置需要以下步骤。
1: The particles must be emitted from the points of a scene object that has a vertex weight tag; to do this, go to the emitter Object tab, and set the Emitter Shape to Object.
1:粒子必须从具有顶点权重标签的场景对象的点发射;为此,请转到发射器对象选项卡,然后将发射器形状设置为对象
2: Drag the scene object into the Object link field
2:将场景对象拖入对象链接字段
3: Drag the vertex map into the Selection link field.
3:将顶点图拖入选择链接字段。
4: Set Emit From to Points.
4: 将发射点设置为点。
5: In the emitter Extended Data - General Data tab, activate Emission Vertex.
5:在发射器扩展数据 - 常规数据选项卡中,激活发射顶点。
xpEmitter set up for the Vertex Weight setting.
Emission Vertex enabled in the Extended Data tab.
Now, vertex data is being generated per particle, this can be used in an nxQuestion setup.
In this scene, particles with a Vertex Weight of less than 0.5 are turned orange.

Condition

Less, Less-Equal, Equal, Not Equal, Greater-Equal and Greater are all conditions for how to use the data and compare it to a Value setting to give if the question is successful (true).
Within, Not Within can be used as some data may not be exact (floating point), this gives the option for a value to be within a range of values.

Value

The constant value set and measured against.

Time

The scene frame set and measured against.

Check Once

If, enabled, once the question is successful, it won't be checked again.
This animation shows Check Once disabled, so the question is repeatedly checked, repeatedly changing each particle’s color.
With Check Once enabled, in this final animation, the question is successful and is not checked again.
Copyright © 2024 INSYDIUM LTD. All Rights Reserved.