# moomarkus

Members

9

0 Neutral

• Rank
Peon

• Name
Markus
• Location
Toronto
1. ## Writing .mc ncache (maya fluids) from houdini.

HInt for velocity field in nFluid cache (mcc/mcx) : - How is velocity laid out? It is on the surfaces bettween voxels. Test to set velocities: for x in range(3): for y in range(5): for z in range(7): cmds.setFluidAttr(at='density', xi=x, yi=y, zi=z, fv=(x + y + z)) cmds.setFluidAttr(at='velocity', xi=x, yi=y, zi=z, vv=(x + 1, y + 1, z + 1)) Duncan says: Velocity is defined at voxel boundaries, not the centers (it takes a little thinking to appreciate this fully). Thus for a 10x10x10 grid the velocityX grid will be (11,10,10), the velocityY(10,11,10) and the velocityZ(10,10,11). The API docs also clarify quite well: http://download.auto...b82dbe223133529 Looking at the raw data set via cmds.setFluidAttr(..., lowerFace=True), the X values go (0, 1, 2, 2), the Y (0, 1, 2, 3, 4, 4), and the Z do the same. They also iterate in the same Z,Y,X order that the density does. **1 References: **1 : https://github.com/westernx/mayatools http://download.auto...99211af08ae8d0c http://blog3d.distill3d.com/
2. ## mimic for each 'attribute value' in python

## I'm kinda new to this as well. ## Is there a better way? import hou h=hou.node("/obj/torus_object1/torus1") g=h.geometry() p=g.points() # get list of points geo # pre-get attributes if you wanna find out what's available? # a_pt = p[0] pt_geo = a_pt.geometry() l_attrs = pt_geo.pointAttribs() print "attribues:",l_attrs #### now go through points for whatever attrib value.. ## point position in this simple case. print "size p:",len(p) for pt in p: print i i +=1 # For now, just print attribute "P" print pt.attribValue("P")

<deleted\>
4. ## Writing .mc ncache (maya fluids) from houdini.

Yup, basically for now, I've regenerated an mcc xml in maya, then modify the values as needed by the channel / frame requirments of the file caches outputed from the first script. IE: use the maya mcc.xml as a template. You can wrap that in a python function if it's too tedious. (Which is what I've done)
5. ## Writing .mc ncache (maya fluids) from houdini.

Update on my current problem with this. I have resize containers working now. The only problem is that when I bring into maya, the Volume container is self-centering, so it's shifting around. I'd like it grow from the base of the volume, but it's not. One possible solution is to some how use the offset channel, but I'm not sure how to calculate that offset right now. I suppose I can try: In Houdini: 1. find base position (call it 'original positition) at start frame of sim. and get dimensions of volume 2. For each frame, get dimensions of volume and do a delta on 'original position' and calc offset(vector) : = delta(vector)/2 I'll post my findings later.
6. ## Writing .mc ncache (maya fluids) from houdini.

Actually, this is my first python script in Houdini.... I executed it in the "Python Source Editor". Is this the *Best* way to this? Or are there other ways to do this? My initial approach was to use vex , and/or vex script in a custom ROP, but I couldn't wrap my head around how to write a file without open and closing a file for each voxel/particle/point (ie: if I used a volume wranger, or point wrangle node). <--- is this possible to do for my result? THanks! Please comment! Markus

8. ## problems installing / running realflow plugins for houdini 10.0.xx

So I've received from realflow plugins for my current version of houdini 10.0.595 linux 64 bit and installed it: I've extracted the dso's to my linux environment: /n/repo/deployment/GridTools/test/mng/dolphintale_m2010-mng/houdini/dso_10.0.595/linux set my environment: ======================== HOUDINI_DSO_PATH=/home/qube/houdini10.0/dso:/n/repo/deployment/GridTools/test/mng/dolphintale_m2010-mng/houdini/dso_10.0.595/linux:/opt/hfs10.0.595/houdini/dso ======================== The 'config', 'toolbar', 'help' directories are extracted to : /n/repo/deployment/GridTools/test/mng/dolphintale_m2010-mng/houdini And I've set: ======================== HOUDINI_PATH=/home/qube/houdini10.0:/n/repo/deployment/GridTools/test/mng/dolphintale_m2010-mng/houdini:/opt/hfs10.0.595/houdini:/opt/hfs10.0.595/bin ========================== And I still get this error: =========================================== lrn26082 hfs10.0.595/bin> ./hscript 17074: Fatal error: Floating point exception (sent by pid 1151923951) Error: signal handler called recursively. lrn26082 hfs10.0.595/bin> ============================================== Any ideas? I have houdini 10.0.595 with the realflow 10.0.595 plugins installed.. On windows, it runs fine. On linux it will not execute. When I remove the realflow so's from the directory, Houdini will launch with no complaints. I was just thinking whether there any specific requirements outside of houdini's installation like libraries or system .so that the realflow plugins require? Thanks! Markus Btw: I hate how long NextLimit replies to their emails... it's like 1 day per email.
9. ## problems installing / running realflow plugins for houdini 10.0.xx

I'm having problems installing / running realflow plugins for houdini 10.0.xx on linux 64. The error I'm getting is : (executing hscript) ========== start output ============= lrn29015 build/qube> /opt/hfs10.0.595/bin/hscript 18529: Fatal error: Floating point exception (sent by pid -2107435281) Error: signal handler called recursively. =========== end output ================ My system setup is : Linux lrn29015 2.6.16.21-0.25-smp #1 SMP Tue Sep 19 07:26:15 UTC 2006 x86_64 x86_64 x86_64 GNU/Linux Running : 10.0.595 linux 64 bit version: ./hscript-bin: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.0, dynamically linked (uses shared libs), for GNU/Linux 2.6.0, stripped realflow plugin : linux-64 bit downloaded from portal nextlimit (for version 10.0.734) This should be ok.. right? For 10.0.595. I'm including the dso via: setting HOUDINI_DSO_PATH to the location of the installed dso's for realflow. ******* With out out the realflow DSO's, hscript (and all other h*stuff) will run normally. Anyways that's my question.. Hope someone can help. Markus
×
• Donations