aachman98 / aachman98/Sorcar

[REQUEST] Loop on Arrays?

未关闭
#153 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement ux
主要语言
Python
星标
1.2k
派生
112
PR 合并指标
30 天内没有已合并 PR

描述

I am unable to loop on the elements that an array outputs.
Let's imagine randomizing the red components of the material of an array of cubes, or even the rotation for that mater. How to?

I think if the Array generators output an array as well as an object then you would be able to process the loops on that.

Alternatively there would be a node called "elements from object" that can extract the duplicated objects from an array.

First and only thing I tried to do with Sorcar. Just randomize the colors of an array of cubes.

Anyway it's where I started. So bad first day trying a much needed soon to be great tool (love the Houdini reference coming to Blender idea BTW).

I would think there are more fundamental things that could achieve this for setting the property of anything like the color components of a material. It would appear there should be a 'color' property like 'number', or again a way to set a property on a value like color 'r', 'g', 'b' of a color or whatever it is, so maybe I am looking for a script node within loops.

Anyway I could not get the elements that an array generates in the loops, just a single object from the array, so it needs an 'array of elements' output that works in loops. Problem there is I would need all the separated elements when chaining them together (unless there was a compound array) so an array (is a line of cubes) in another array (2D grid of cubes), passed through a third array (3D cube of cubes), should return all the elements not just the last array of 2D grids, so you can process each cube in a loop.

Sorry I think this is maybe too new to post questions in some other forum if there is a way please point me to where it would be better to ask this and other possible noob questions that have answers although it is clearly not a simple one if it does exists. Still this is a way to make it simpler to get started with this surely to be great tool.

Thanks for working on it past, present, and future.

贡献指南

这个仓库没有索引到贡献指南

调研方向

查看 Sorcar 的 node editor 中的 array 生成 nodes,可能在 procedural generation modules 中。理解 arrays 如何输出 objects,以及目前有哪些 outputs 可用。这个请求是需要一个可以 loop 以访问单个 elements 的 array output,或者一个从 array 中提取 elements 的 node。检查现有的 loop nodes 以及它们如何处理 data。'Done' 意味着用户可以在 cubes 的 array 的每个 element 上 randomize 像 color 或 rotation 这样的 properties。

由索引模型根据 Issue 内容生成。

评估

技术栈
blender, python
领域
computer-graphics, game-dev
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。