Help : Array/List in HDA

   2029   2   1
User Avatar
Member
14 posts
Joined: Aug. 2021
Offline
Bonjour,
Mon problème est le suivant je vais vous explique ce que j'essai de faire en meme temps pour etre plus clair.

Ce que j'essai de faire :
- Avoir un int x dans mon HDA entre 1 et l'infini
- Que ca me créer suivant ce int x objetPath dans mon hda j'avais l'idée d'utiliser une array mais encore une fois comment mettre cette array dans mon hda en fonction de ma variable int x.
le but après étant d'utiliser cette array dans un for each pour traiter individuellement chaque objet d'ou le fait d'avoir besoin d'une list ou array.

Aussi C'est dans le but de l'intégrer dans unreal dans le future.

Quelqu'un aurait une idée de comment je pourrais faire cela ?

Je suis francais donc désolé si tous est par forcement compréhensible.
Merci d'avance
Killian


Hello,
My problem is the following I will explain what I am trying to do at the same time to be more clear.

What I try to do :
- Have an int x in my HDA between 1 and infinity
- That it create me following this int x objectPath in my hda I had the idea to use an array but again how to put this array in my hda according to my variable int x.
- The goal after being to use this array in a for each to treat individually each object from the fact of needing a list or array.

Example if my int is 13 it should create 13 line of path object stored in my list or array.

Also It is with the aim of integrating it into the unreal in the future.

Does anyone have any idea how I could do this?

I am French so sorry if everything is not understandable
thank you in advance
Killian
User Avatar
Member
9584 posts
Joined: July 2007
Offline
you can use Multiparm Block
- add Folder and set Folder Type to Multiparm Block (list)
- then add Operator Path parameter under this folder and name it something#, where # will be automaticaly replaced with multiparm instance index (e.g. index in the array/list)
- also on the Folder settings you can choose First Instance to have index 0 or 1
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
14 posts
Joined: Aug. 2021
Offline
This is exactly what I was looking for, thank you very much!

Now I have new problems

How to use this list :

In a for each Number
- How get x path number for list in attribut wrangle?
- How to put a different group to each mesh that comes from each line of Operator Path#?
- How to put them an artribute according to their line
- How to put path# "object_merge" node

maybe this is the wrong way to do it in a each Number this is what I'm looking to do

example
In my Operator Path# list
I have :
../Cube1
../Cube2
../Cube3
../Cube4

first spawn the mesh with the "object_merge" node and that would put
- add group Objet1 and add attribut for point "Objet_Num = 1" since a attribut wrangle for Cube1
- add group Objet2 and add attribut for point "Objet_Num = 2" since a attribut wrangle for Cube2
- add group Objet3 and add attribut for point "Objet_Num = 3" since a attribut wrangle for Cube3
- add group Objet4 and add attribut for point "Objet_Num = 4" since a attribut wrangle for Cube4

thanks for your help
Killian
Edited by KillianDS - March 6, 2022 17:52:58
  • Quick Links