[hellp] can't use attrib promoted to detail level

   2693   4   1
User Avatar
Member
479 posts
Joined: Dec. 2009
Offline
I create a new detail level attrib “rms” by promoting the “root mean square” of a prim level attrib “attrib”.

However, when I try to create a new detail level attrib “rms_sqr” which is the square of “rms” using the hscript “detail”, it didn't work:

pow(detail(opinput(“.”,0), 0, “rms”, 0), 2)

can anybody kindly help to tell me why it didn't work and advise a solution?

thank you very much!

Ji

Attachments:
entropy_v007.hipnc (152.1 KB)
1.PNG (69.4 KB)

User Avatar
Member
1908 posts
Joined: Nov. 2006
Online
The detail() expression only takes 3 arguments, not 4. You need to remove your first 0 arg.
pow(detail(opinput(“.”,0), “rms”, 0), 2)
Graham Thompson, Technical Artist @ Rockstar Games
User Avatar
Member
479 posts
Joined: Dec. 2009
Offline
thanks, graham!

However, it still doesn't work following ur suggestion

is it because that the “rms” attrib is not “mapped”?

looking forward for your advise!

Ji

Attachments:
2.PNG (56.3 KB)

User Avatar
Member
1908 posts
Joined: Nov. 2006
Online
You are using opinput() when you should be using opinputpath(). The name of the first input node isn't valid for the expression, you need a proper path.
Graham Thompson, Technical Artist @ Rockstar Games
User Avatar
Member
479 posts
Joined: Dec. 2009
Offline
thank you very much, graham!

careless me ….
  • Quick Links