Jump to content

netherknight

Members
  • Content count

    27
  • Donations

    0.00 CAD 
  • Joined

  • Last visited

Community Reputation

0 Neutral

About netherknight

  • Rank
    Peon

Personal Information

  • Name
    Thomas van Fucht
  • Location
    Belgium
  1. Changing Cd saturation with attribute expression

    Yes! This is perfect thank you.
  2. I'm running into an issue. I'm using the convert node to change my wires to NURBS. However, when I render these out it renders them as if the conversion hasn't happened. Is there a good reason as to why this is happening?
  3. Hi everyone, I'd like to be able to adjust the HSV via an attribute expression. What's easy is multiplying the point color with something like this: "value * fit(float(rand(@elemnum)),0,1,0.5,1.5)" However, just using that expression multiplies the color with a random number giving a generally blacker/whiter color. What I would like is to be able to change the saturation separately. The result would be a set of X wires having the same color with a saturation/value range of 0.5 to 1.0 Is there a good way of achieving this or do I need to stick to the simple multiplication?
  4. Is there a good way to aply a perspective correction to the cameras so that we can eliminate the vertical perspective when looking/rendering through the camera? 3dsmax allows us to do this on their default cameras. https://knowledge.autodesk.com/support/3ds-max/learn-explore/caas/CloudHelp/cloudhelp/2015/ENU/3DSMax/files/GUID-38F86E7D-A79F-47D9-9E5F-7849E91BB6CB-htm.html I suspect we should use a lens shader, however I have no Idea where to start with that.
  5. Switch from 16.5 to 17.5 breaks my python code.

    Yes!! That does work, intresting that there might be a change in numpy Thank you Atom! I'm going to see if I can rework it but this will help immensly for the time being!
  6. Switch from 16.5 to 17.5 breaks my python code.

    Ok sue that makes sense, though it seems odd this worked in 16.5 Is there an elagant way of adjusting without needing to rewrite everything? because even if I convert line 122 and 123 to ints rather than floats, we still run into issues further along the code.
  7. Hi everyone, I hope someone can help me. I have a rather length piece of code set up in python that works great in 16.5. However I'd like to make the switch to 17.5 The error's I'm getting are: Error Python error: Traceback (most recent call last): File "", line 221, in File "", line 191, in newyarn File "", line 179, in poly2polys File "", line 122, in strands TypeError: slice indices must be integers or None or have an __index__ method Are these easy to fix changes, or has there been a big change between versions?
  8. I'm working with a wie simulation at the moment and would like to save out frame 300. This is ofcourse easlily done by saving out the frame with a file cache. However, The wires I'm imulating change patern per frame. So the input for the simulation changes when I try to run it. I would like to save out the simulation frame 300 for all patterns. so say frame 1-10 I load in 10 diffrent patterns and want all of them to cache after 300 frames of simulation. basically the end result would be: (where $F = 300) Pattern-1-Simulation.$F.bgeo.sc Pattern-2-Simulation.$F.bgeo.sc Pattern-3-Simulation.$F.bgeo.sc Ect. I can manually do this by making the input static and waiting for the sim to run, but the sims take about an hour and a half and I would like to just leave that on at night. I'd preferably like to avoid having to make 10 filecache nodes with 10 diffrent inputs and ROP-merge outputting them, though if this is the only way then maybe. Any help?
  9. Dynamic relative reference

    Omg fantastic, I've been scratching my head for ages haha. Thanks for the help Morn66!
  10. I'm setting up a scene with a bunch of colors. As such I like to keep them in a Null node so theyre all in one place. In a geometry node I'm trying to apply that color with works fine with relative reference: (U3650 being the name of the color) ch("../../Colorbank/U3650r") This works great but I'd like to have the U3650 be changed based on a string attribute on a diffrent node. that way I can change it there without having to tediously go into rgb values and changing it by hand. I've tried the following: (the value in lable_1 being U3650) ch("../../Colorbank/chs("../colorControl/label_1")r") ch("../../Colorbank/'chs("../colorControl/label_1")'r") However this doesn't seem to work. Could anyone help with getting this reference to work? This would allow me to animate the color per frame which allows for greater control in rendering varients of still images. I've attached a simple hip version of the problem. RR-Help.hip
  11. Generating a grid of points based on text.

    Also @konstantin magnus Would there be a way in python of reading the created array and say for example above the "1" there is an "11" then delete the "1"? The same for "2" and "12" ect. And then if the "11" is under another "11" than it too shall be deleted? I'm thinking two passes, the first one deleting all "1"s under "11"s and then the second pass deleting all "11"s under "11"s if that makes sense. So a grid of: 1;1;11;2 1;11;11;12 1;1;1;2 Would result in a grid of: ("x" being deleted resulting in an empty spot. So this wouldn't cause the whole grid to move up. ) 1;1;11;2 1;11;x;12 1;x;x;x;
  12. Generating a grid of points based on text.

    @Konstantin That's perfect! Thanks for the help! @Andrea Great! I didn't put it to run over detail. It doesn't seem to take very well to a pattern though for some reason <-This being your version Andrea <-And this being the same pattern plugged into Konstantin's python. I'll be trying to figure out why it's not working but for now the python code seems to work better and faster.
  13. Generating a grid of points based on text.

    @Andrea, I like where you're going with this but I'm having trouble applying a hand input array for the "set_Geo_by_array2" node. Seeing as that method has you creating the array based on randomly input values. Wouldn't you then still need to use "i@val = i[]@myarray[@ptnum];" seeing as you need to set the array values?
  14. Generating a grid of points based on text.

    Thanks Konstantin, I'm new to python so I'm not entirely sure how I would go about implementing this. I'm assuming you'd add a multi-line string as a parameter on the python node, but I'm not sure how to get the geometry attached?
  15. Generating a grid of points based on text.

    That would be 500 rows and 500 columns and then applying a patern of 500x500 numbers. with the size of the grid being 15 x 15
×