Hi everybody,
Sorry for asking primitive questions but:
1) How can I add rows or columns to a set of primitives with only one knife SOP? is there another tool to do that (edge divide, divide and subdivide did not help)?
2) How can I use attributes inside of transform SOP?
3) How do I get the number of copies and copy number in vex? it used to be $CY and $NCY in Hscript if I am not wrong.
I did not want to waste space by posting in separate threads. Thanks for your attention.
Simple Questions about Knife,Attribues and Copying
1495 4 1-
- fred_98
- Member
- 56 posts
- Joined: Feb. 2017
- Offline
-
- julca
- Member
- 219 posts
- Joined: Oct. 2015
- Offline
Hi,
1)I've done an asset
(divide equally [www.sidefx.com]) for the "SideFX Labs Tech Art Challenge 2021" that seems to be what you ask. It's open asset so you can also learn it and modify as you want.
2) you can use expression inside parameter field likedetail doc [www.sidefx.com]
3)Where are you ? inside "copy" sop or inside a "for loop" sop nodes ?
In a "for loop" you can use metadata and then "iteration" attribute
Get a simple hip file so we can better see and make example.
Hope that help
1)I've done an asset
![](/static/djangobb_forum/img/smilies/smile.png)
2) you can use expression inside parameter field like
detail(0,"myAtrribName", 0)
3)Where are you ? inside "copy" sop or inside a "for loop" sop nodes ?
In a "for loop" you can use metadata and then "iteration" attribute
Get a simple hip file so we can better see and make example.
Hope that help
![](/static/djangobb_forum/img/smilies/smile.png)
-
- fred_98
- Member
- 56 posts
- Joined: Feb. 2017
- Offline
Thanks a lot julca, quite helpful replies here.
1)Tbh I have never used lab tools and I was looking for a simpler approach. So you are telling me that there is not tool in H which can easily add parallel segments to a polygon? I am coming from an old software where hitting one button was doing it (in horizontal or vertical direction).
2) Thanks a lot.
3) I am not anywhere and I was trying to understand out of curiosity. I do not think I can use $CY/$NCY in vex and I was trying to understand how to replace it.
1)Tbh I have never used lab tools and I was looking for a simpler approach. So you are telling me that there is not tool in H which can easily add parallel segments to a polygon? I am coming from an old software where hitting one button was doing it (in horizontal or vertical direction).
2) Thanks a lot.
3) I am not anywhere and I was trying to understand out of curiosity. I do not think I can use $CY/$NCY in vex and I was trying to understand how to replace it.
-
- julca
- Member
- 219 posts
- Joined: Oct. 2015
- Offline
You're welcome,
1) Of course, have you seen edge-loops [www.sidefx.com] ?
3) You can use "iteration" detail attribute or even the "numiterations" in vex or anywhere. cf. more detail ForLoops [www.tokeru.com]
1) Of course, have you seen edge-loops [www.sidefx.com] ?
3) You can use "iteration" detail attribute or even the "numiterations" in vex or anywhere. cf. more detail ForLoops [www.tokeru.com]
-
- fred_98
- Member
- 56 posts
- Joined: Feb. 2017
- Offline
-
- Quick Links