Learn how to use the mesh primitive with some VEX and Python snippets to create a versatile system to create LED Panels. 

We will:

  • First Pass (Nice and Sloppy)
  • Create testbed (Profile curves, LED geometry, Text Message in COPs)
  • Creating the LED Panel Grid - 1st Pass loose and of no use
  • Fixing UV direction and LED Element Placement
  • Creating Materials using the PBR EMISSION node
  • Geometry LightSecond Pass (Get it Tight)
  • Using VEX to get the ratios correct
  • Text message & COPs (Python Snippets for image size)
  • Clean UVs
  • Animate Message
  • Control Light Bleed


COMMENTS

  • El Adore 4 months ago  | 

    Hi Ari
    I've got a problem when i put the python script.

    textparm = hou.parm("text").eval()
    textheight = hou.parm("textsize").eval()

    # fudge parameter to adjust width by height
    textwidthadjust = hou.parm("text_width_adjust").eval()

    # Count the number of characters in the text
    charnum = textparm.count('')

    # calculate the line width
    linewidth = charnum * (textheight * textwidthadjust)
    return linewidth

    Errors :
    Error: Unable to evaluate expression (
    Traceback (most recent call last):
    File "<stdin>", line 6, in expression
    AttributeError: 'NoneType' object has no attribute 'eval'
    (/obj/TheMessage/font1/size1)).

    • nhaca.chau 4 months ago  | 

      It's because there is no parm("text_width_adjust"). Just edit the parameter and add that parm.

  • aridanesh 4 months ago  | 

    Howdy,

    I cut and pasted your code into my network and it worked fine. Just to make sure you did convert the parameter to use Python instead of HScript?

    • El Adore 4 months ago  | 

      I do but it ain't work :(

  • Daryl Dunlap 4 months ago  | 

    This would be ALOT easier if SOP data could be consumed in a true COPs Wrangle.

  • aridanesh 4 months ago  | 

    Agreed, but that is why I make these quirky tutorials

  • aridanesh 4 months ago  | 

    Attach your hip file and I will take a look

  • chances 4 months ago  | 

    Hi Ari,

    I got the same problem when entering the python script. I changed language to python.

    textparm = hou.parm("text").eval()
    textheight = hou.parm("textsize").eval()
    textwidthadjust = hou.parm("text_width_adjust").eval()
    charnum = textparm.count('')
    linewidth = charnum * (textheight * textwidthadjust)
    return linewidth

    Error
    Unable to evaluate expression (
    Traceback (most recent call last):
    File "", line 4, in expression
    AttributeError: 'NoneType' object has no attribute 'eval'
    (/obj/the_message/font1/size1)).

    • nhaca.chau 4 months ago  | 

      You can edit the parameter interface and add that parm as float.

  • El Adore 4 months ago  | 

    Hi Ari,

    I think you made a cut edit in your footage and we don't have the same continous condition of your tuto :(
    We can see a new line "The Height" (parameter) ... ????

    Can we have the total modification you made before the cut ?

    Thanks.
    Best regards.

  • aridanesh 4 months ago  | 

    Working on attaching the scene file. Check back tomorrow. Thank you

    • El Adore 4 months ago  | 

      Thank you Ari.

Please log in to leave a comment.