Adding Objects in Path using Primwrangle
1322 5 1- vipinfx
- Member
- 4 posts
- Joined: Oct. 2017
- Offline
- olivierth
- Member
- 1075 posts
- Joined: April 2017
- Offline
- vipinfx
- Member
- 4 posts
- Joined: Oct. 2017
- Offline
olivierth
I would go like this:if(find(s@name, "sphere") >= 0){ // if it finds the word sphere, it will give a number above zero s@path = "/shop/assets/Sphere"; }
Thanks for the reply olivierth , the result is same for me.. its merging anything that names sphere in to one object mesh instead of adding them individually on the xform
- Mohanpugaz
- Member
- 146 posts
- Joined: June 2016
- Offline
to avoid merging, you would need to add the existing @name to the path
if(@name ~= "sphere*"){ s@path = concat("/shop/assets/Sphere/",s@name); }
Edited by Mohanpugaz - July 6, 2023 03:53:57
Mohan Pugaz
movfx
https://www.instagram.com/movfx/ [www.instagram.com]
https://www.youtube.com/channel/@_movfx
movfx
https://www.instagram.com/movfx/ [www.instagram.com]
https://www.youtube.com/channel/@_movfx
- Mohanpugaz
- Member
- 146 posts
- Joined: June 2016
- Offline
If you have multiple objects in each of the categories then you could set it up like this
Also attached .hiplc file if you wanna take a look
Also attached .hiplc file if you wanna take a look
Mohan Pugaz
movfx
https://www.instagram.com/movfx/ [www.instagram.com]
https://www.youtube.com/channel/@_movfx
movfx
https://www.instagram.com/movfx/ [www.instagram.com]
https://www.youtube.com/channel/@_movfx
- vipinfx
- Member
- 4 posts
- Joined: Oct. 2017
- Offline
-
- Quick Links