IvanPulido Posted March 17, 2015 Share Posted March 17, 2015 (edited) Hi Ivan Thanks for your post, it appears that you can write per frame. abc files with a standard ROP output driver, instead of the alembic ROP. output: "myalembic.$F4.abc" I have tested this and it seems to work for now! I will email you if I run into any difficulties. Thanks Graham Really?!! Are u using H14? Super!!! No needs more python to do that then. Edited March 17, 2015 by IvanPulido Quote Link to comment Share on other sites More sharing options...
gramx Posted March 17, 2015 Author Share Posted March 17, 2015 Yes, I am using H14. Don't use ROP Alembic output. I used ROP Output or file cache instead "myalembic.$F4.abc". I also export vdb the same way myvdb.$F4.vdb Quote Link to comment Share on other sites More sharing options...
IvanPulido Posted March 17, 2015 Share Posted March 17, 2015 Yes, I am using H14. Don't use ROP Alembic output. I used ROP Output or file cache instead "myalembic.$F4.abc". I also export vdb the same way myvdb.$F4.vdb Super!!!! And all the attributes and everything is stored correctly in the sequence? Thanks for the info man. Quote Link to comment Share on other sites More sharing options...
gramx Posted March 17, 2015 Author Share Posted March 17, 2015 I need to do more tests but it appears to be working. Quote Link to comment Share on other sites More sharing options...
graham Posted March 17, 2015 Share Posted March 17, 2015 The code jason was referring to: GEOio.json entry { "description": "Vray vrmesh", "extensions": [".vrmesh"], "opipe" : "/some/path/scripts/convert_to_vrmesh stdin.bgeo '%(save)s'" } Script # Convert geometry stream to temp, bhclassic file. gconvert stdin.bgeo /tmp/__vrmesh__.bhclassic # The 2nd arg is the file path we want to write the vrmesh to, except # it doesn't actually seem to be. Houdini actually seems to pass a # random temp file path to write to and then moves that file to the # actual target path. ply2vrmesh /tmp/__vrmesh__.bhclassic $2 # Remove the temp file. rm /tmp/__vrmesh__.bhclassic 1 Quote Link to comment Share on other sites More sharing options...
gramx Posted March 17, 2015 Author Share Posted March 17, 2015 Thanks graham!! I will give this a try G Quote Link to comment Share on other sites More sharing options...
bunker Posted March 23, 2015 Share Posted March 23, 2015 yes, no problem with attributes or changing point count. Super!!!! And all the attributes and everything is stored correctly in the sequence?Thanks for the info man. Quote Link to comment Share on other sites More sharing options...
Jason Posted March 25, 2015 Share Posted March 25, 2015 Ha ha, yes - Thanks Graham; I completely spaced out on checking this thread again. We use several ply2mesh option arguments too -- which may or may not be required by other people out there depending on ... things.... -materialIDs -sortMaterialIDs -mapChannel 0 -flipFaceNormals -fps 24 -velocityOffset -0.25 Quote Link to comment Share on other sites More sharing options...
wolkiger Posted April 29, 2015 Share Posted April 29, 2015 Hi, thanks a lot for that script ! That's really coolI tried it on windows but it doesn't seems to work when picking stdin.bgeo on gconvert.It does work with an already existing bgeo file as input, or when using stdin.bgeo but in a unix sop.Do you think this is windows/linux related ? Quote Link to comment Share on other sites More sharing options...
rtep Posted April 29, 2015 Share Posted April 29, 2015 I might be wrong about this but I think last time we were converting to vray meshes we had to actually rop out our geo as .bhclassic, not .bgeo. Then rename those files to .bgeo and then convert to vrmeshes. Quote Link to comment Share on other sites More sharing options...
wolkiger Posted April 30, 2015 Share Posted April 30, 2015 I skipped the step of renaming, as bhclassic seems to work well with ply2vrmesh. Quote Link to comment Share on other sites More sharing options...
rtep Posted May 1, 2015 Share Posted May 1, 2015 cool. That's good to know. Quote Link to comment Share on other sites More sharing options...
gao Posted May 7, 2015 Share Posted May 7, 2015 The code jason was referring to: GEOio.json entry { "description": "Vray vrmesh", "extensions": [".vrmesh"], "opipe" : "/some/path/scripts/convert_to_vrmesh stdin.bgeo '%(save)s'" } Script # Convert geometry stream to temp, bhclassic file. gconvert stdin.bgeo /tmp/__vrmesh__.bhclassic # The 2nd arg is the file path we want to write the vrmesh to, except # it doesn't actually seem to be. Houdini actually seems to pass a # random temp file path to write to and then moves that file to the # actual target path. ply2vrmesh /tmp/__vrmesh__.bhclassic $2 # Remove the temp file. rm /tmp/__vrmesh__.bhclassic how used this script in houdini? Quote Link to comment Share on other sites More sharing options...
blented Posted December 28, 2015 Share Posted December 28, 2015 Can confirm a regular ROP Output Driver with file.$F4.abc works properly with VRay. This was fantastic news and a great find, thanks @gramx Quote Link to comment Share on other sites More sharing options...
Lucas van Rossum Posted October 30, 2016 Share Posted October 30, 2016 if hou.parm(hou.parent().path()+"/Vrmesh").eval(): import subprocess,os excutable="C:/Program Files/Chaos Group/V-Ray/3dsmax 2014 for x64/tools/ply2vrmesh.exe" image=hou.parm(hou.pwd().path()+"/sopoutput").eval() imageout=os.path.splitext(image)[0]+".vrmesh" argum=[] if hou.parm(hou.parent().path()+"/smoothNormals").eval(): argum.append("-smoothNormals") if hou.parm(hou.parent().path()+"/smoothAngle").eval(): argum.append("-smoothAngle") argum.append(str(hou.parm(hou.parent().path()+"/smoothAngleValue").eval())) if hou.parm(hou.parent().path()+"/flipNormal").eval(): argum.append("-flipNormal") if hou.parm(hou.parent().path()+"/flipVertexNormal").eval(): argum.append("-flipVertexNormal") if hou.parm(hou.parent().path()+"/flipFaceNormal").eval(): argum.append("-flipFaceNormal") if hou.parm(hou.parent().path()+"/flipFaceNormal").eval(): argum.append("-flipFaceNormal") if hou.parm(hou.parent().path()+"/flipYZ").eval(): argum.append("-flipYZ") if hou.parm(hou.parent().path()+"/flipYPosZ").eval(): argum.append("-flipYPosZ") if hou.parm(hou.parent().path()+"/materialIDs").eval(): argum.append("-materialIDs") if hou.parm(hou.parent().path()+"/sortMaterialIDs").eval(): argum.append("-sortMaterialIDs") if hou.parm(hou.parent().path()+"/previewFaces").eval(): argum.append("-previewFaces") argum.append(str(hou.parm(hou.parent().path()+"/previewFacesValue").eval())) command=[excutable,image,imageout]+argum Hi guys, Here is my post Write script that i use to automate the convertion of .bhclassic in .vrmesh. You also need to populate your Rop with parms that is called by the script. cheers Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.