1. #1
    Member Follow User Gallery
    Join Date
    Jul 2005
    Location
    Venice CA
    Posts
    82

    Default FileName functions question

    I'm trying to figure out how to call whatever the displacement map has been named after being generated, I tried using FileNameGetLastUsed, but i just not sure on the syntax to place it in the select function. the goal is to select the alpha for an export script, regardless of the initial mesh name.

    thnx for any help.

  2. #2

    Default

    Hola.

    I know the film is done and you are probably taking a much need break but here is an answer for ya. I am just learning ZScripting myself.

    Run this zscript to get see how it works:

    [IButton,Play,"Press to play this ZScript. ZScript can be aborted at anytime by pressing the ‘esc’ key.",
    [IPress,Tool: Displacement:Create DispMap] //Create map
    [ISet,Alpha:Item Info,999] // Set to very high number so it selects the last item in the alpha menu
    [VarSet,DispName,[IGet,Alpha:Item Info]] // select the displacement map
    [Note, DispName] // print out its number in the alpha palette

    ]

    Cheers,

    Ryan
    UArtsy - the Online Art School

  3. #3
    Moderator Follow User Gallery
    Join Date
    Jun 2004
    Location
    UK
    Posts
    11,462

    Default

    Ryan,

    For the name you could use a slightly different solution:

    [CODE]
    [ISet,Alpha:Item Info,[IGetMax,Alpha:Item Info]]//set to last alpha
    [VarSet,DispName,[IGetTitle,Alpha:Item Info]] //gets name of last alpha[/CODE]

  4. #4

    Default

    Very cool. Thanks Marcus.
    UArtsy - the Online Art School

  5. #5
    New Member Follow User Gallery
    Join Date
    May 2004
    Location
    Bangkok
    Age
    45
    Posts
    20

    Default Thx

    Thx This Script Good Idea

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •