Yi Zhang


About Me

Not Specified
Not Specified


Recent Forum Posts

Large amount points instancing? Aug. 24, 2021, 7:42 a.m.

I have a flip sim which contains 30 million particles, when I use a cube as an instance object to instance on those points, the render just hang there, and the memory usage goes up quickly and eat up my 64G memory eventually, then the renderer stops working.

Want I want is to render those millions of points as custom shape not the default sphere look.So instance should be the way to go, however, with huge number of points, the instance work flow seems broken. What should I do to make it work?

Vex function source code April 18, 2019, 11:40 p.m.

is there a way to find the source code for a specific vex function?

calling hython from script and get the processed data Dec. 6, 2016, 6:17 a.m.

I have a script named A which invokes hython like this

subprocess.call('path to the hython command'+' '+'path to script B'+' '+'path to hip file')
what script B contains is:
import sys
args = sys.argv
print args
  hou.hipFile.load( args[1] )
except hou.LoadWarning, e:
  print e
renders = hou.node('/out').allSubChildren()
so the basic idea is to use hython to open a scene, process it, and get some info back(in my case,“renders”).
so how to get data back from subprocess.call or are there other ways to do so?

Any ideas would be appreciated !