Found 146 posts.
Search results Show results as topic list.
Technical Discussion » Precise Transforms Match a Geo onto another Geo
- Mohanpugaz
- 146 posts
- Offline
Technical Discussion » How to render a slap comp?
- Mohanpugaz
- 146 posts
- Offline
It should be possible for sure. But I'm not at pc right now.
I guess you may use $F in squarebracket before .png
To write sequence. Im not sure test it out.
I guess you may use $F in squarebracket before .png
To write sequence. Im not sure test it out.
Edited by Mohanpugaz - July 19, 2024 11:53:40
Technical Discussion » How to render a slap comp?
- Mohanpugaz
- 146 posts
- Offline
Technical Discussion » How to render a slap comp?
- Mohanpugaz
- 146 posts
- Offline
ROP Image [www.sidefx.com]
Have you tried this
I wrote out textures using this. But havnlent tried to write slapcomp. It should work. But let me know if this works.
Cheers
🙂
Have you tried this
I wrote out textures using this. But havnlent tried to write slapcomp. It should work. But let me know if this works.
Cheers
🙂
Edited by Mohanpugaz - July 19, 2024 10:32:57
Houdini Indie and Apprentice » RECEPIE - Unable to store a recepie with `karmalensmaterial`
- Mohanpugaz
- 146 posts
- Offline
Thanks for reply.
Yeah I can understand that it is just an Edit material Properties LOP with some predefined parameters.
But I just want to save it along with other Nodes. (Kind of a turn table template which includes this node with lens parameters).
I don't really want to host the recepie (im guessing the anchor node is what you mean here)
using that particular node. But even if I host it on any other node it still doesn't work.
Basically in short Edit material Properties LOP which has the lens Properties in it is not working when trying to save it in a recepie.
Hope that was clear. Sorry if I'm adding more confusion.
Yeah I can understand that it is just an Edit material Properties LOP with some predefined parameters.
But I just want to save it along with other Nodes. (Kind of a turn table template which includes this node with lens parameters).
I don't really want to host the recepie (im guessing the anchor node is what you mean here)
using that particular node. But even if I host it on any other node it still doesn't work.
Basically in short Edit material Properties LOP which has the lens Properties in it is not working when trying to save it in a recepie.
Hope that was clear. Sorry if I'm adding more confusion.
Houdini Indie and Apprentice » RECEPIE - Unable to store a recepie with `karmalensmaterial`
- Mohanpugaz
- 146 posts
- Offline
I not able to save the recepie and load it back if I try to save a recepie which contains `karma lens material` LOP,
However if I try to save a new `edit material properties` with defaults it works fine.
Is it just me or everone is having trouble with this?
However if I try to save a new `edit material properties` with defaults it works fine.
Is it just me or everone is having trouble with this?
Houdini Lounge » 20.5 sneak peek is here!
- Mohanpugaz
- 146 posts
- Offline
mzigaib
I use COPs a lot even with the current bugs the thing I miss the most is a decent rotoshape vector node, please tell me that I am going to have that on copernicus!🙏
I wish the same as well. But chances are less it seems. In the keynote they showed shapes were built using sdfs. I think it will be something like hacking curves sop to make rotoshape?. But this is just my guess, who knows what is coming.
Technical Discussion » create multiple channel custom plane
- Mohanpugaz
- 146 posts
- Offline
Technical Discussion » Can $F be written in a Houdini node's parameter via Python?
- Mohanpugaz
- 146 posts
- Offline
Houdini Lounge » 20.5 sneak peek is here!
- Mohanpugaz
- 146 posts
- Offline
What a wonderfull update.
My most favorite features.
1. COPs 2.0
2. Receipes
Cops seems insanely improved.
I can't wait to get hands dirty.
🤩
My most favorite features.
1. COPs 2.0
2. Receipes
Cops seems insanely improved.
I can't wait to get hands dirty.
🤩
Technical Discussion » Can $F be written in a Houdini node's parameter via Python?
- Mohanpugaz
- 146 posts
- Offline
I just opened your hip file and had a look.
It looks like the exec() function is doing something here.
If you run the same script from the python source editor it sets the expression properly.
I dont have a solution for this case, but what i would do is make the subnet into hda and call the script from hda module so i can avoid the exec function.
Im too interested to know why this doesnt work when calling a script with exec() and how to fix.
Waiting for the experts!
It looks like the exec() function is doing something here.
If you run the same script from the python source editor it sets the expression properly.
I dont have a solution for this case, but what i would do is make the subnet into hda and call the script from hda module so i can avoid the exec function.
Im too interested to know why this doesnt work when calling a script with exec() and how to fix.
Waiting for the experts!
import hou switch = hou.node("/obj/geo1").createNode("switch") exp = "$F4" switch.parm("input").setExpression(exp)
Technical Discussion » Extract the minimum and maximum values out of any node
- Mohanpugaz
- 146 posts
- Offline
I think that is not straight forward inside of vops.
Two ideas i have.
1. you may use vex snippet to
iterate through all points and find maximum value. (You could also use for loop in vops)
2. You may store that value to a list/array, sort the array and get the last or first index.
Example here. You will Need to alter it to use inside vops.
Two ideas i have.
1. you may use vex snippet to
iterate through all points and find maximum value. (You could also use for loop in vops)
2. You may store that value to a list/array, sort the array and get the last or first index.
Example here. You will Need to alter it to use inside vops.
int npts = @numpt;
float test_values[];
for (int i = 0; i < npts; i++) {
append(test_values, point(0, "test", i));
}
sort(test_values);
float max_value = test_values[-1];
Edited by Mohanpugaz - June 13, 2024 12:39:32
Technical Discussion » Can $F be written in a Houdini node's parameter via Python?
- Mohanpugaz
- 146 posts
- Offline
Technical Discussion » How to run a python script node?
- Mohanpugaz
- 146 posts
- Offline
I know this is pretty old post, still posting my method here so it may help people in future.
Python has this function called exec(string) which executes given string as a python code.
So you can simply do these steps
It will get the string from multiline string parameter and runs it as python code.
obviously you can point this to parm from any node and run from that node.
this could be very handy when you want to store python codes in hip file itself. very much portable!
Python has this function called exec(string) which executes given string as a python code.
So you can simply do these steps
- create any node
- gear icon > edit parameter interface > create a multine string parm > optionally set it to python language for syntax highlight
- create a button > add a this in callback
exec(hou.pwd().parm("your_string_parameter").eval())
It will get the string from multiline string parameter and runs it as python code.
obviously you can point this to parm from any node and run from that node.
this could be very handy when you want to store python codes in hip file itself. very much portable!
Technical Discussion » Sweep Rotation Direction
- Mohanpugaz
- 146 posts
- Offline
you can use an attribute (lets say `@twist_mask`) to control the twist, this attribute is a multiplier, so you can manipulate it as much you want such as re-mapping that using curveu attribute and use that mask to drive the twist.
Edited by Mohanpugaz - May 13, 2024 08:55:42
Technical Discussion » Modifing Parm with Python
- Mohanpugaz
- 146 posts
- Offline
Hi all, Ive read multiple forums regarding this but still not able to make it work.
Im trying to modify a custom `multiline string parm`
I want to change the language of it through python, say i have a dropdown to choose formatting whether python or vex.
here is what i did so far, I found the way to do this is using the .setTag() function to set {"editorlang : "python"}
i can see the tags are modified by printing my parmTemplateGroup but i couldnt see the change in the node.
Im not sure what im doing wrong, can someone help please?
Im trying to modify a custom `multiline string parm`
I want to change the language of it through python, say i have a dropdown to choose formatting whether python or vex.
here is what i did so far, I found the way to do this is using the .setTag() function to set {"editorlang : "python"}
i can see the tags are modified by printing my parmTemplateGroup but i couldnt see the change in the node.
Im not sure what im doing wrong, can someone help please?
import hou n = hou.node('/obj/htip2') g = n.parmTemplateGroup() old_lang = g.find("code") new_lang = old_lang new_lang.setTags({"editorlang":"python"}) g.replace("code", new_lang) n.setParmTemplateGroup(g) print(new_lang.tags())
Edited by Mohanpugaz - May 2, 2024 08:09:37
Technical Discussion » SideFX Labs conflict with Redshift houdini.env, in 19.5.569
- Mohanpugaz
- 146 posts
- Offline
I have made two video tuts on how to install redshift and sidefx labs using the packages method, they work fine without any conflict. you can try them if you want.
Technical Discussion » Dynamic Parameter Generation for Doors in Houdini
- Mohanpugaz
- 146 posts
- Offline
I am afraid having too many controls would make the hda confusing and hard to use but nevertheless its good to know how to do this.
I just made a simplest example for this without using python. It might give you some insights on how you could go about it.
Since it is dynamically updating the parms each time the number of rooms increase or decrease, which ever parms you already setup might get destroyed. Hmm not really ideal, but here you go.
I just made a simplest example for this without using python. It might give you some insights on how you could go about it.
Since it is dynamically updating the parms each time the number of rooms increase or decrease, which ever parms you already setup might get destroyed. Hmm not really ideal, but here you go.
Image Not Found
Technical Discussion » How to display local coordinate gnomon of packed prim?
- Mohanpugaz
- 146 posts
- Offline
Matt's solution is great and to add to that,
I will use this button here to visualize the gnomon, i havent realized that button exists for a long time when i started with Houdini. so sharing for someone who might not know this.
I will use this button here to visualize the gnomon, i havent realized that button exists for a long time when i started with Houdini. so sharing for someone who might not know this.
Technical Discussion » Adding Objects in Path using Primwrangle
- Mohanpugaz
- 146 posts
- Offline
If you have multiple objects in each of the categories then you could set it up like this
Also attached .hiplc file if you wanna take a look
Also attached .hiplc file if you wanna take a look
-
- Quick Links