Sign in to follow this  
solver

Ruby: Using %file.name% in plan

Recommended Posts

Confused trying to use %file.name% in a simple script.

 

Short video to explain the problem.

 

 

 

Share this post


Link to post
Share on other sites

The simple answer is that %file.name% just displays the data - but doesn't return the string to Ruby.  This is the problem with all of Chief's "Built-in" macros.

You would need to use another way of getting the file name as a string.  Preferably from some object attribute - maybe a Layout Box "referenced_file_name" as a starting point.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

  • Member Statistics

    28307
    Total Members
    6254
    Most Online
    christiesternerz
    Newest Member
    christiesternerz
    Joined