Jump to content

asnowcappedromance

Members
  • Content count

    209
  • Donations

    0.00 CAD 
  • Joined

  • Last visited

  • Days Won

    3

asnowcappedromance last won the day on August 20 2020

asnowcappedromance had the most liked content!

Community Reputation

47 Excellent

3 Followers

About asnowcappedromance

  • Rank
    Initiate

Personal Information

  • Name
    Manuel
  • Location
    Vancouver, B.C.
  1. Bullet - dynamic constraint creation

    Hi guys, It's been a while, I didn't expect to post in the same topic again so quickly. Oh well, it seems constraints don't work as I think they should. This time I have a slightly different scenario. I start with a box in a Dopnet, which I swap to a fractured geometry on frame #1006 As you can see in the right image, the constraints are being applied with an offset. I'm transforming the constraints back to their rest position as suggested by Tomas 2 replies above in this thread. The swapping of the geometry happens in the "refrag" SOP Solver, in which I also calculate the constraints directly. The "sopsolver1" that's connected to the constrain network then directly object merges those constraints and adds them to the relationship geometry stream. I'm making sure not to change the point order by adding new ids to the new fragments (if the original box has id 0, then the new fragments have ids 1,2,3,4). Interestingly my approach of creating constraints on the fly works, if I don't swap the objects, but start with the 4 fragments from the start of the DOP simulation. You can have a look at the working example as well, you'll find it in the green network box in SOPs. If somebody could help me out here, that would be much appreciated. Why is this offset applied even though I move the constraints back to their rest position? It's a big enigma to me right now. Please let me know if you need any additional info to debug this problem. All the best, Manu
  2. Houdini Senior FX TD, destruction!

    Hey Houdini community, Looking for a strong Houdini senior, remote work possible as long as you can somewhat align yourself with the PST timezone, we're located in Vancouver. If you identify yourself with the following characteristics, you may be a good fit for us: – destruction experience (vehicles, buildings, fire, smoke, complex RBD constraint setups) – works confidently & independently – can execute a VFX shot in his/her discipline from start to finish – pragmatic & quick problem solver – 5 or more years of professional experience in VFX – can work with rapid deadlines without overengineering setups Email with cover letter and reel please to: info@stormbornvfx.com We usually do high level hero shots, so that's something that absolutely has to be on your reel, otherwise we can't consider you. Have a look at what we've been doing recently: Cheers, Manu
  3. Bullet - dynamic constraint creation

    Hey Thomas, Good to hear from you and thanks for chiming in! I really appreciate you taking the time to answer this, that was a huge help. And also thanks for the additional pieces of information, I was not aware of the s@next_constraint_name and s@next_constraint_type attributes. Hope things are well in NY! All the best, Manu
  4. Bullet - dynamic constraint creation

    Hi guys, It's been a while since I had to use constraints and I was hoping somebody can help me out here I'm trying to dynamically fracture 2 boxes that are constraint to 2 static boxes. I then want to delete the old constraints on the fly (that part works but for some reason it happens one frame too late, why?) and constrain the new frags to each other. This part doesn't work at all I'm using the technique described in the file above, but for some reason my constraints go haywire. I hard-coded the first box to refracture on frame #30, the second box does the same on frame #60. Hip file and screenshots are attached, thanks so much for taking a look! Cheers, Manu dynamic_constraint_problem.hip
  5. Stormborn Studios First Reel

    Hi guys, Happy to share this with you! Let me know what you think! Cheers, Manu
  6. 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
  7. 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!
  8. 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
  9. 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!
  10. 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
  11. 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
  12. 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
  13. 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
×