Jump to content

fixing bugs in H


mic

Recommended Posts

hello! i'm fighting against likely bug in H. - every time i open the hip scene i need to re-cook and re-select some nodes, cause their transforms are not correct. that is not very comfortable) i wrote few-lines-script in Hscript - smth like that:

set nodes = '"obj/geo2/metaballWing" ..........'
set groups = '"obj/geo2/WingGroup" .........'
set transforms = '"obj/geo2/WingTransform" ........'

for i = 0 to 4
	opset -C on -r on -d on `arg($nodes, $i)`
	opparm -d `arg($nodes, $i)` -v tx ty tz
	opset -C on -r on -d on `arg($groups, $i)`
	updateui
	opset -C on -r on -d on `arg($transforms, $i)`
	updateui
	opparm -d `arg($transforms, $i)` -v px py pz
	opparm -d `arg($nodes, $i)` -v tx ty tz
	opset -C on -r on -d on `arg($nodes, $i)`
	opcook -F `arg($nodes, $i)`
end
opset -C on -r on -d on obj/geo2/popnet6

the key command is 'updateui' - without it nothing works. But if i want render from commandline, cmd doesn't understand 'updateui' of course. What should i do in this case?

(the reason of 'updateui' is that without it everything works only using line-by-line execute (in Textport)! full .cmd file didn't work. so i needed some 'pause' command and 'updateui' seems to be helpful in all cases except render from cmd)

Edited by mic
Link to comment
Share on other sites

I wonder if you have some kind of conflict (like a cyclic dependency) which is causing your objects to evaluate incorrectly? Sometimes I find the best way of finding this out is to use the Performance Monitor and look for errors that get printed into there.

So, try this: load your scene with "houdini -n yourscene.hip", to start in the Manual cook mode. Open up the "Windows> Performance Monitor" and enable "Enable Output". Change the cook mode to "Auto". Now scour the output for errors in cooking.

Link to comment
Share on other sites

i didn't find any error, but nevertheless thank you for your advice!

and while scouring output i thought that the reason may be that the nodes aren't connected to each other? i have the transform node ('WingTransform') somewhere and metaball (not connected to it, of course), which center is 'ch("../WingTransform/px")'..

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...