opdigits inside another function

   13681   6   2
User Avatar
Member
639 posts
Joined: July 2005
Offline
Hi, is it possible to have an opdigits() inside another expression like
ch(“../xform`opdigits(”.“)`”) ?




Thanks!
ALex
User Avatar
Member
7714 posts
Joined: July 2005
Offline
Try this:
ch(strcat(“../xform”, opdigits(“.”)))
User Avatar
Member
1631 posts
Joined: July 2005
Offline
Usually I use a variable to replace the opdigits() function.

Bring up the ‘Aliases/Variables’ dialog by either the Dialogs menu -> ‘Aliases/Variables’ or type ‘Alt-Shift-a’.

Go to the Variables folder & set foo with a value of ‘opdigits(“.”)’. Please do not include the quotes ( ' ).

Now, retype your expression as such: ch(“../xform$foo”).
User Avatar
Member
639 posts
Joined: July 2005
Offline
Thank you, Edward, that worked!

Thank you for your suggestion, Steven, I can't believe I didn't even think about the solution like yours. I guess strcat() can get pretty nasty when dealing with a very long expressions.
User Avatar
Member
258 posts
Joined:
Offline
Props to Steven here…
User Avatar
Member
8539 posts
Joined: July 2007
Online
you can use plain old + sign

ch(“../xform”+opdigits(“.”)+“/tx”)
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
110 posts
Joined:
Offline
Blast from the past!
  • Quick Links