Hello
I do not understand why in att wrangle on details @myend = detail(“op:../Area1/”,“end”); works
and on attr create I can't use as value detail(“op:../Area1/”,“end”) to create a new attribute with it.
If someone can explain, please.
thanks
detail att wrangle / att create
2742 10 0- innocent
- Member
- 35 posts
- Joined: 2月 2017
- Offline
- tamte
- Member
- 8444 posts
- Joined: 7月 2007
- Online
- innocent
- Member
- 35 posts
- Joined: 2月 2017
- Offline
- innocent
- Member
- 35 posts
- Joined: 2月 2017
- Offline
if I follow this :
In the expression language, there are two named functions to get detail attributes, `detail` and `details`. The first returns a float and takes an index into the attribute (so you can get components of a vector). The second returns a string and has no index.
-> to get string
Thus, there are some changes needed
1) A terminating backtick.
2) Use details, not detail.
3) Remove the 0 parameter
`details(“../set_dissolve_string”, “edge_string”)`
so to have a float, should be :
`detail(“../Area1”, “end”,0)`
it's not working on channel parameter (hda)
In the expression language, there are two named functions to get detail attributes, `detail` and `details`. The first returns a float and takes an index into the attribute (so you can get components of a vector). The second returns a string and has no index.
-> to get string
Thus, there are some changes needed
1) A terminating backtick.
2) Use details, not detail.
3) Remove the 0 parameter
`details(“../set_dissolve_string”, “edge_string”)`
so to have a float, should be :
`detail(“../Area1”, “end”,0)`
it's not working on channel parameter (hda)
- jsmack
- Member
- 7658 posts
- Joined: 9月 2011
- Online
- innocent
- Member
- 35 posts
- Joined: 2月 2017
- Offline
- jsmack
- Member
- 7658 posts
- Joined: 9月 2011
- Online
- tamte
- Member
- 8444 posts
- Joined: 7月 2007
- Online
“../area” is not the correct path, your area node is a child of your hda so “./area”
and in your first parameter with absolute path you are not using correct quotes
then the third one will be the only one that is not supposed ot return the value
and in your first parameter with absolute path you are not using correct quotes
""
but “”
for some reason as if they were pasted from somewherethen the third one will be the only one that is not supposed ot return the value
Edited by tamte - 2020年6月23日 00:24:28
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- innocent
- Member
- 35 posts
- Joined: 2月 2017
- Offline
- tamte
- Member
- 8444 posts
- Joined: 7月 2007
- Online
not sure what you copied and pasted, I still see incorrect relative path “../area” on your screenshot
PS: I replaced just the expressions on the hda instance parameters, I didn't modify the defaults in the HDA definition, so those default values were still your old ones
PS: I replaced just the expressions on the hda instance parameters, I didn't modify the defaults in the HDA definition, so those default values were still your old ones
Edited by tamte - 2020年6月23日 01:22:27
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- innocent
- Member
- 35 posts
- Joined: 2月 2017
- Offline
-
- Quick Links