Joshua Queck


About Me



Recent Forum Posts

Change the speed of a carve node for Rollercoaster animation Oct. 25, 2022, 9:41 p.m.

Okay, first of all, really big thanks to you @Enivob! This is a really clever way, setting keyframes via python. Would never have come up with this on my own.

However I did some minor debugging and tweaked the code a bit, since your result produced a linear keyframe ramp which had the same speed between all points. In case somebody else should ever need this, I ended up with this:

import hou
node = hou.node('/obj/Achterbahn-Geo/Rollercoaster/Place_Cars/ROLLERCARVE')
parm = node.parm('domainu1')
geo = hou.pwd().geometry()
key = hou.Keyframe()

finaltime = geo.attribValue('final_time')
fps = hou.fps()
lastframe = final_time*fps

pcount = 0 #calulate amount of points
for point in geo.points():
pcount = pcount + 1
numpt = pcount

count = 0
for point in geo.points(): #loop through all points and set keyframes in the specified carve node
count = count + 1
value = point.attribValue('time')
keytime = value

Change the speed of a carve node for Rollercoaster animation Oct. 21, 2022, 2:34 p.m.

Hi everyone!

I am trying to animate a rollercoaster along a curve. Each point of the curve has an attribute when the train will arrive at the specific point. But the obvious formula of "timeAtPointX / totalTime" does not work when put in a carve node U and the speed does not change at all when the train drops down.

Can anyone help me solve the problem with the carve node?
I am also fine with not using a carve node, as long as my 5 car train rolls along the track with the calculated speed.

Thanks in advance!

Python Script got deleted April 20, 2022, 6:06 p.m.


I have a large project where I implemented a button which is linked to a script inside my hdas Subnet Type Properties. While I was editing I pressed STRG+s to save the project, but a window popped up instead. There was some text, which i dont perfectly remember and i only had the option to "safe & quit", "discard & quit", "help", "see error" and another one which i forgot. Since the only option was to quit the application afterwards and I had not saved in a while, i used the save and quit button.

Now, when i load my file again, it always says: using incomplete asset definitions(full definitions not found) * and my node name*
Also, most importantly, the Python script, which was inside my Type Properties is now gone. Vanished from existence.
Most interesting part is, even im my Backup files all my python sripts are now gone and it throws the same error with the definitions...
It seems like I changed some global kind of variable which made some imports or references useless.

Can anyone help me to restore my python script and remove the error? I am really out of ideas and have been googling for hours now.

Thanks in advance,