Jump to content

PARMmenu - how do i insert custom functions


sanostol

Recommended Posts

thanks alot , it works, but it leads directly to the next question.

any python script leads to an houdini errormessage, blaming for syntax error.

even

import hou

results in this error

are there any examples available for this. it seems a little but "underdocumented" :P

As sort of noted in PARMmenu.xml, take a look at MainMenuMaster :) The format and how it works is pretty much the same. Hopefully that clears things up a bit.

Link to comment
Share on other sites

i'm doing a workaround now, maybe someone can use it..

instead of adding a scriptitem I add a scriptCode to the PARMmenu.xml file. that imports just a module from my pythonpath and runs a method from that.

<scriptCode>

import houdini.mm_utils

houdini.mm_utils.plot_anim(kwargs['parms'])

</scriptCode>

but still the other way would be interesting, too

Link to comment
Share on other sites

  • 4 years later...
Guest mantragora

A little off-topic, since I need to parse XML file myself for HDK right now, I looked at some free libraries to do this, but since Houdini uses XML files the simple question grown in my head:

- is there a XML parser available in HDK or should I use external library?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...