Jump to content

Search the Community

Showing results for tags 'python xml'.

  • 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. Hi Guys, First post since I joined odforce. I am trying to make a tool which could create filecache node on the right click of a null node. The moment I hover my cursor on the "mdu" option, before clicking it's creating filecache node. Its a submenu option, so I think I am missing some thing important. <?xml version="1.0" encoding="UTF-8"?> <menuDocument> <menu> <subMenu> <label>mdu</label> <actionItem id = "create.rop.node"> <labelExpression><![CDATA[ node = kwargs['node'] result = 'Create Rop Node' sel = hou.selectedNodes()[0] if sel.type().name() == 'null': selName = sel.name().split("_") joinName = "_".join(selName) nodeName = joinName.replace('OUT_',"") if selName[0] == 'OUT': nodePath = sel.path() node = hou.node(nodePath) node.createOutputNode("filecache",nodeName) else: raise hou.Error("Invalid Node name") else: print sel.name() + " is not valid for cache" result = u"\u2713 " + result return result ]]></labelExpression> <context> <expression>kwargs["node"].type().category().name() in ("Sop")</expression> </context> </actionItem> </subMenu> </menu> </menuDocument> Thanks
×
×
  • Create New...