Jump to content

asnowcappedromance

Members
  • Content count

    204
  • Donations

    0.00 CAD 
  • Joined

  • Last visited

  • Days Won

    2

asnowcappedromance last won the day on November 12 2015

asnowcappedromance had the most liked content!

Community Reputation

33 Excellent

3 Followers

About asnowcappedromance

  • Rank
    Initiate

Personal Information

  • Name
    Manuel
  • Location
    Vancouver, B.C.
  1. PySide2 override CSS

    Hi Alex, Cool to see that you're in Vancouver! Our office is just a few blocks from Sony! You were right, I can directly set a styleSheet on my PysideTest class, but like in the above example the background color gets simply ignored for some reason. In the below code my text appears in green but the background remains black instead of red. Here's the current code: from PySide2 import QtCore, QtGui, QtWidgets class PysideTest(QtWidgets.QMainWindow): def __init__(self, parent=None): super(PysideTest, self).__init__(parent) test = QtWidgets.QWidget() self.resize(800, 800) self.setWindowTitle("This is a test") hbox = QtWidgets.QHBoxLayout() edit = QtWidgets.QLineEdit() edit.setObjectName("QLineEditCustom") hbox.addWidget(edit) test.setLayout(hbox) self.setCentralWidget(test) self.show() def run(): mainWidget = hou.qt.mainWindow() obj = PysideTest(mainWidget) obj.setStyleSheet("QLineEdit#QLineEditCustom {background-color: 'red'; color: 'green';}") run() Thanks for your help guys! Best, Manu
  2. PySide2 override CSS

    Hi Kishen, Thanks for your reply. In my case I want to change the background color of the QLineEdit, not the QMainWindow. Any idea how to do that? Cheers!
  3. PySide2 override CSS

    Hi guys, I'm having a simple shelf tool in Houdini: from PySide2 import QtCore, QtGui, QtWidgets class PysideTest(QtWidgets.QMainWindow): def __init__(self, parent=None): super(PysideTest, self).__init__(parent) test = QtWidgets.QWidget() self.resize(800, 800) self.setWindowTitle("This is a test") hbox = QtWidgets.QHBoxLayout() edit = QtWidgets.QLineEdit() edit.setObjectName("QLineEditCustom") print edit.styleSheet() hbox.addWidget(edit) test.setLayout(hbox) self.setCentralWidget(test) #self.setBackgroundRole(QtGui.QPalette.ColorRole.Base) self.setBackgroundRole(QtGui.QPalette.Dark) self.setAutoFillBackground(True) self.show() def run(): mainWidget = hou.qt.mainWindow() css = mainWidget.styleSheet() css_filter_str = 'QLineEdit#QLineEditCustom\n{background: rgb(255, 255, 255); color: rgb(255, 0, 255); selection-background-color: red}' css = "\n".join([css, css_filter_str]) mainWidget.setStyleSheet(css) obj = PysideTest(mainWidget) run() When I press on the shelf tool button I get my UI popping up nicely. This only works if I give the class "PysideTest" the parent "mainWidget", otherwise the UI disappears immediately after clicking on the shelf tool. Now because I'm giving it the "hou.qt.mainWindow()" as a parent, the UI inherits the CSS from its parent. In order to override the CSS on the QLineEdit for instance, I can't just simply write edit.setStyleSheet(), this is being ignored. Instead, I apparently have to grab the CSS from the mainWidget (which is a string) and append my own line using the identifier "#QLineEditCustom". This way it's possible for me to adjust the text color (in my case pink) as well as the selection background color (in my case red), however I'm unable to change the background color of the QLineEdit, which is what I actually want to do. > background: rgb(255, 255, 255) does not work > background-color: rgb(255, 255, 255) does not work either What am I missing here guys? I really like the fact that I can just inherit the CSS from Houdini, but it would be great if there was a more straight forward way of customizing it. The other question I have, what if I wanted to change the background color based on the user text input from color A to color B dynamically, how would I approach that? Thanks in advance, Manu
  4. Houdini lighting TD and senior fluid FX TD wanted!

    Houdini artists, we're looking for Fluid FX TDs (remote possible) and Houdini lighting TDs (Vancouver locals only). Send us a message if interested!
  5. Follow Stormborn Studios on Facebook!

    Hey guys, We just launched the official Facebook page for Stormborn Studios! If you like the idea that a small crew of experienced FX ninjas is trying to take on the world of VFX, give us a juicy like, share with your friends and follow us! Thanks for the support! Manu https://www.facebook.com/stormbornstudios
  6. customizing netbox creation and other UI commands

    Hey man, Have a look at this code on how to resize a network box in Python: if hou.selectedNodes(): sel = hou.selectedNodes()[0] pos = sel.position() parent = sel.parent() box = parent.createNetworkBox() box.setPosition(sel.position()) box.addNode(sel) box.setColor(hou.Color(0.5, 0.2, 0.5)) bbox = hou.BoundingRect(pos[0] - 4, pos[1] - 1, pos[0] + 5, pos[1] + 1) box.setBounds(bbox) cheers, Manu
  7. mid- to senior level FX TDs - Stormborn Studios Vancouver

    Role has been filled, thanks guys!!!! Feel free to send me a message anyway if still interested, we always have projects that need top notch Houdini talent
  8. Hi guys, Stormborn Studios is currently looking for mid- to senior level Houdini FX TDs. If you're looking for work or know somebody who does, please shoot me a message! (Vancouver-based artists only!) Cheers, Manu
  9. Introduction to FX using Houdini - workshop

    Hey what's up guys, Only 1 week left to sign up for my fast-track Houdini workshop "Introduction to FX using Houdini". Limited student capacity! Over the course of 9 weeks and 33+ hours of tutorial content students learn how to do procedural modeling, particle-, RBD-, pyro-, FLIP- and whitewater simulations. On top of that we're going to talk about lighting, shading, rendering and we're going to dive deep into VEX scripting. I would love to answer any questions that you might have!!! Cheers, Manu Find the complete course syllabus here: https://www.cgmasteracademy.com/courses/16-intro-to-fx-using-houdini Also for more detailed information on the workshop, check out an interview that was done on 80.lv recently: https://80.lv/articles/making-first-steps-in-vfx-with-procedural-tools/ Here's a quick teaser:
  10. Mixing animations from Mixamo.com

    Hey man, I did it exactly how Atom described it up top. I downloaded several animation clips from Mixamo as FBX and then used timeshift SOPs and the Blendshape SOP in order to blend the animation clips. Pretty easy! Just try to replicate what Atom did, that should work for sure! Cheers, Manu
  11. Uniform Volume Shader with specular/reflection

    woooow 5 days and not a single reply, what's up Odforce? Turns out all I had to do was to transform the point gradient attribute from world to camera space and use the PBR Metallic instead of the PBR reflect. Works really well. Would love to know what's wrong with the PBR Reflect though, why isn't that working as expected? It does if I'm using volumes and a vector3 gradient field ... Thanks to Andrea Sbabo for the tip to use PBR metallic!
  12. Uniform Volume Shader with specular/reflection

    Hey guys, I'm trying to render points as volumes using the uniform volume shader with specularity/reflection. I calculated a gradient attribute on my points (to emulate normals) and plugged that into my shader, but I'm having no success as all. The same technique works if I convert my points to a volume and then use a gradient vector field, however I'd like to get it to work without having to convert my points into a volume. Attached a screenshot of my current shader and also a hip file. Any ideas how to get that to work? Thanks, Manu uniform_volume_spec_test.hiplc
  13. Mixing animations from Mixamo.com

    Hey man, Thanks a lot for the detailed screenshot, I'll have a play first thing tomorrow! Kinda off topic, how are you liking those Ryzens? Better than Xeon or I7? Cheers!!! Edit: I rebuilt your setup and it works like a charm, thanks a lot for pointing me towards the right direction!!
×