Jump to content

Search the Community

Showing results for tags 'string'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Lounge/General chat
    • Education
    • Jobs
    • Marketplace
  • Houdini
    • General Houdini Questions
    • Effects
    • Modeling
    • Animation & Rigging
    • Lighting & Rendering + Solaris!
    • Compositing
    • Games
    • Tools (HDA's etc.)
  • Coders Corner
    • HDK : Houdini Development Kit
    • Scripting
    • Shaders
  • Art and Challenges
    • Finished Work
    • Work in Progress
    • VFX Challenge
    • Effects Challenge Archive
  • Systems and Other Applications
    • Other 3d Packages
    • Operating Systems
    • Hardware
    • Pipeline
  • od|force
    • Feedback, Suggestions, Bugs

Product Groups

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Skype


Name


Location


Interests

  1. Hello ODFORCE community! First time around here and I hope you can help me with a rather simple(?) case of referencing an attribute to a node. So my situation is the following: I'm trying to feed a number of pre-made curves (from Illustrator) into a File node. In order to do so, I thought I could build a string array in an attribute (detail) wrangle, with the paths to the .ai files, and then extract each file path by feeding a chi() to select each array item. So far so good. What I've noticed is that File nodes don't store data. Is that correct? I connected the attrib wrangle and I couldn't see any attributes (I tested on other node in case was a coding mistake, but they worked fine). So... that's when I land in this question of how to import data in the file path of a File node (Geometry File is the name). I attach 3 snapshots. One with the mentioned nodes,a second one with the array (I've only included one file path xD, just testing) and a last one with the error showed in the File node. I tried adding the "`" "to_feed" is the attribute wrangle "ref_string" the attribute "0" as... I'm retriving the the index = 0 of the array? That one I don't have it clear Anyways, doesn't work : / Is there a way to make it work? Can I retrieve a non-connected attribute into a File node geo path? Alternatives? Thanks in advance!
  2. #File Included Hello i face Simple Issue Related to "connectadjacentpieces" Node i'm watching a training , imagine i have two boxes the guy who teaches going to give each boxes unique string using attribwrangle and in the next step he going to merge them and connect them to "connectadjacentpieces" node" and set it on "adjacent prices from surface points" then he middle click on connectadjacentpieces node to see info , he have a "2 unique strings" available , but for me when i set it on "adjacent prices from surface points" it going to remove my strings "0 unique" does anyone face this issue? Problem-Adjust.hip
  3. Dear all, Good Evening, So, i was digging into the VEX functions "string" section. And i didn't found any clue to chop a string into an array. string myString = "1234Abc"; The goal will be to get this below : string arrayFromString[] = {"1","2","3","4","A","b","c"}; As well in python it is "native" : myString = "1234Abc" myString[0] would be "1" etc etc.... But to use it in a wrangle i need VEX ....If anybody has a clue . It will be 100% Welcome, as it could be a very simple way to chop and bytecrush long floating numbers. Might it be a NOOB question and i apologize already for that. Thank you a lot, And all the best to everybody with Houdini !!! alr + + +
  4. I have a filename param which contains "$F4". When I read it using hou.param('...').eval(), the "$F4" is expanded to the current frame. Is there a way in Python to prevent this expansion, i.e. get the raw string with "$F4" included literally?
  5. jonidunno

    Vellum Frame

    Hey all, I need help with something I think should be relatively easy but cannot figure it out. I want to drop a picture frame in with strings attached using vellum. I have set up the wires but cannot figure out the correct approach to attach to the frame. I have a attached the beginning of my set up maybe someone can help me out or give me some advice! Thanks! vellum_frame_jl_01.hiplc
  6. I got an array of point numbers int searchPts[] = [0, 1, 2, 3] that I want to pass into the pcfind function as a ptgroup so it only operates on those points. How do I convert this to a string of "0 1 2 3"? Is this how I should even approach it? pcfind(<geometry>geometry, string ptgroup, string Pchannel, vector P, float radius, int maxpoints) Thanks!
  7. In the Python SOP, I've run into a wall trying to get an integer converted to a string. In the larger picture, I'm trying to subtract 1 from a value which is currently part of a string. There are probably neater ways to write these steps, but I'm fairly new to Python so I'm writing it all out to make things easier to follow. I start with a string such as: string = "f27" Then remove the 'f' like so: string = string[1:] Convert it to an integer: integer = int(string) Subtract 1 from the value: integer -= 1 set new string string_new = "f" + str(integer) The last line returns an error on the Python SOP: TypeError: str() object is not callable. This is confusing because these same steps work just fine in the Python shell. Is there an alternative to str(), or am I using it wrong?
  8. Hey guys, I recently had some VRScenes made (a file type to save vray material, lights etc into a vray scene file) - however at the time I had setup materials on desktop. I have cleaned up my drive and moved everything to external SSD. Now I found out that my VRScene files do not find the textures I had created on desktop since they have been moved (obviously). I realised I can quickly edit the .VRScene files in a text editor and replace the file location in few places i.e. "C:\files\old_location" to "G:\files\new_location". I have maybe 5 or 6 VRScenes to do this with which is easy to manually do but I wanted to exercise some Houdini into this and wanted some directions on how I can procedurally edit a bunch of .VRScene or .txt files and replace certain string variables. Surely there is a way to automate this process!
  9. Hi there, this is probably way simple and a dumb question but.... I'm trying to make a tool that will use a string from a spare parameter and use it to reference geometry on a drive. The point() function works if I type in the value - check . I can make a new attribute and reference the spare parameter- check. But when I use the string attribute or directly reference using ch('myparameter') from within the point() function I draw a blank. I suspect its changing the string to float or something in the point() function. Any help much appreciated Thanks John //mycode s@mystring = chs(“geo”); v@Cd = point("mystring",“Cd”,@ptnum); v@P = point(“mystring”,“P”,@ptnum);
  10. Hey all, I was trying to create instance path in vex and trying to use few bgeo sequences, I have different wedges for my main geometry and I want to use instance path in such way that. It will change directory path based on point attribute. it looks something like this, "$HIP/houdini/geo/test/wedge_`chs("parm")`/test.wedge_`chs("parm")`_`chs("../Version/vers")`.`chs("frame")`.bgeo.sc" but when I try to use point attribute in string, it doesnt work, or maybe I dont know the right way to write the syntax. I have to create parameters and call it. but it doesnt work accurate. can you guys please help me with it ?
  11. Hi. How could I convert primitive group name to a string attribute? I have few groups - group _01/02/03/.... and I just want to get numbers to use them as integers in vex, just to apply random color. int group_number = opdigits(@name); @Cd = set(rand(group_number), rand(group_number*1502), rand(group_number/1560)); Doing it with the name SOP, but what is the way of doing that in vex? Thank you Cheers Janis
  12. Hi, I am a beginner level Houdini user and I am trying to accomplish an effect where I grow curves from source points on an object that are dynamic and respond to collisions/forces. An effect similar to this I found some really helpful things on cgwiki (here http://www.tokeru.com/cgwiki/index.php?title=HoudiniDops#Grow_trees_with_particles ) dealing with grains, but I can't figure out how to have my curves grow from my source points while remaining attached. Anyone know a way to accomplish this effect?
  13. Hi guys, I'm playing around with vellum but something is bothering me: I want to attach a string to a cloth but I cannot do it if they are 2 different vellum objects in DOPs The example file will be much clearer than what I write but the question is: Does all the vellum objects need to be merged to build a constraint network, am I using the wrong method meaning I should create the constraints in another way ? Thanks for you help ! cloth_and_string_01.hipnc
  14. Hi, I am studying python to set a parameter of string (cachePath) by script. After executing the code, ideally it pastes original, "`chs("resouceA")`_`chs("resouceB")`", instead of expanded result "G:/Projects/RnD_000_001/geo_element " So far, I am thinking two methods: A a = r(\"\`chs(\"resouceA\")\`_\`chs(\"resouceB\")\` ") # this way is too many back splash and so confusing B resA = hou.node('.').parm('resourceA').unexpandedString() resA = hou.node('.').parm('resourceB').unexpandedString() a = resA + resB # this way is ok, but when there are 5-10 parmeters, it would be too much work. Do we have a simplest way or special command?? Ideally something like this: a = unexpandedExpression("`chs("resouceA")`_`chs("resouceB")` ") Thanks
  15. Hi, exploring vellum i'm trying to break an hair geo by enabling the "break threshold" option in the "vellum constraint" SOP. I must be missing something on the constraint workflow of vellum because it has no effect at all on the sim :'( I'd be curious to know if any of you managed it ! Thanks vellum_hair_break.hipnc
  16. Hi, I have a problem with this, my knowledge of VEX is not yet really good so I'm asking for your help! Basically, I want to copy the roof of the object merge to my attribute s@type "ceilling" to the s@variation, either "groundfloor", or "firstfloor", or "secondfloor", depending on wich is at the top. I hope I'm clear enough. Thank you in advance.
  17. Hi, Can I somehow attach a string variable to an attribute? I want to get something like @P."string" where instead of "string" there should be "x, y or z"
  18. Trying to access a dynamically generated parameter from my control node and eventually put it into an array. I just do not understand why using the path variable is any different from just reading the string directly. here it is in text form btw int maxi = 2; for(int i = 1; i < maxi; i++){ string path = sprintf("../control/parm%g", i); s@path = path; //works^ float param = `chs("../control/parm1")`; f@param = param; //works^ float value = `chs(path)`; f@value = value; //doesnt work^ } Edit : Ive added a simple project file vex calling.hiplc Edit2: Okay I figured It out, I need to get rid of the back quotes encasing the chf() in order for it to work properly. This probably has to do with me copying the parameter and pasting relative reference in order to get the syntax.
  19. Hi @ll, Firstly, enchanted to meet you all. I was testing the VEX function “opfullpath” in a simple way : // Getting the intrinsinc detail “numprim” via the function “detailintrinsinc”. Houdini Version : Nodes : one polygon Mesh(@opinput0) + attrWrangler. Detail intrinsinc signature is : detailintrinsic(string geometry, string intrinsic) Thus #1 : string geometry must be the path to Geometry Thus #2 : the command “in theory” could be : int primCount = detailintrinsinc( “op:`opfullpath(“../myInputedGeo”)`”,”primitivecount”); printf(“prim count : %g \n”, primCount); // to display. Saddly it doesn’t work… But : op:`opfullpath(“../myInputedGeo”)` is NOT a string it generes a string Thus #3 : command could be : string fullpath = `opfullpath(“../myInputedGeo”)`; int primCount = detailintrinsinc( fullpath,”primitivecount”); printf(“prim count : %g \n”, primCount); // to display. Saddly it doesn’t work… So it’s really hard to me to spot the worry…..because if you use the “lazzy” signature : detailintrinsinc(int opinput, string intrinsinc); It works but it has really really less power than using a path as the code will just look a the input0 of the wrangler’s entry rather than all over the scene to get its info. Probably a syntax error from me ? So if any body could help, you will be welcome please !!!. Bests, alr + + + pathtogeo-v004.hipnc
  20. Hey guys is there any way to execute string in python ? its my string variable : "hou.parm('/obj/test3_FBX/materials/Google_Hybrid___7/Google_Hybrid___7_surface/map1')" i want to use it to set a parameter , but problem is its a string. im also tried to change it like this : myPath = '/obj/test3_FBX/materials/Google_Hybrid___7/Google_Hybrid___7_surface/map1' hou.parm(myPath) in 3dsmax maxscript you can using a execute syntax before string to do it. is there a similar way in python for that ?
  21. Hi guys I'm relatively new to Houdini, and I've been trying to make this little digital asset. Basically what I need is to set the 'Number Of Copies' integer field of a duplicate SOP to the number of RETURN characters in the text field of a Font SOP. Is this even possible? I can do this easily in C++ but I can't get the syntax right in Houdini and I don't know how to assign it to the current field for which I'm writing the expression. I tried using the foreach() loop on the text field, but I can't figure out how to do the string comparison. Please help. Thanks!
  22. Hey guys, I am trying to figure out how to add this random end strands on a piece of rope proceduraly. I am attaching my solution as to how to create the piece of rope. I wonder if there is a way to add a ramp to control the size of SCALE of the sweep node and also should i use fur to add little bits of fuzz or tiny threads like here? cord_rope_ends.hipnc
  23. Hi guys. I have a point with an attribute @mesh_path @mesh_path = "/mnt/projects/model/mesh.001.proxy.OBJ" and File SOP connected below I can't read file if I use attribute in a FILE_SOP text Field. `@mesh_path` Is there any possibility to use string variable in FILE SOP text field to read the file?
  24. Hi guys. I have an array of points with an attribute @mesh_path and @map_path @mesh_path = "/mnt/projects/model/mesh.001.proxy.OBJ" and File SOP connected below I can't read file if I use attribute in a FILE_SOP text Field. `@mesh_path` Is there any possibility to use string variable in FILE SOP text field to read the file?
  25. Hi guys. I have a point with an attribute @mesh_path @mesh_path = "/mnt/projects/model/mesh.001.proxy.OBJ" and File SOP connected below I can't read file if I use attribute in a FILE_SOP text Field. `@mesh_path` Is there any possibility to use string variable in FILE SOP text field to read the file?
×
×
  • Create New...