Jump to content

Search the Community

Showing results for tags 'set -g'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Lounge/General chat
    • Education
    • Jobs
    • Marketplace
  • Houdini
    • General Houdini Questions
    • Effects
    • Modeling
    • Animation & Rigging
    • Lighting & Rendering + Solaris!
    • Compositing
    • Games
    • Tools (HDA's etc.)
  • Coders Corner
    • HDK : Houdini Development Kit
    • Scripting
    • Shaders
  • Art and Challenges
    • Finished Work
    • Work in Progress
    • VFX Challenge
    • Effects Challenge Archive
  • Systems and Other Applications
    • Other 3d Packages
    • Operating Systems
    • Hardware
    • Pipeline
  • od|force
    • Feedback, Suggestions, Bugs

Product Groups

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Skype


Name


Location


Interests

Found 1 result

  1. I'm trying to use python to parse $HIP and define variables in houdini. Each Variable Project_Code, Sequence, Shot, and Task can be indeterminant length, so I only really know by the / what each value means. Since I can only use set -g in hscript how would I set these variables? For instance version is based on hipname, but I need to do somethign like: hou.hscript('set -g PROJECTCODE' = `pythonexprs("hipSplit[1]")` ) Which doesn't work in context. $HIP = P:\projects\Project_Code\Sequence\Shot\Task\ -------------------------------------------------------------------- import hou path = hou.hscriptExpression('$HIP') hipSplit = path.rsplit('/')[1:] ## hipSplit example ['projects', 'Project_Code', 'Sequence', 'Shot', 'Task'] ## Sets houdini variable $PROJECTCODE ## PROJECTCODE = hipSplit[1] ## hipSplit[1] is Project_Code etc... ## Sets houdini variable $VERSION hou.hscript('set -g VERSION = `evals(substr($HIPNAME,0,evals(strlen($HIPNAME)-4)))`') ---------------------------------------------------------------------- Thanks -Ben
×
×
  • Create New...