Jump to content

gemini

Members
  • Content count

    99
  • Donations

    0.00 CAD 
  • Joined

  • Last visited

Community Reputation

1 Neutral

About gemini

Contact Methods

  • Website URL
    https://vimeo.com/user726547

Personal Information

  • Name
    Szabolcs
  • Location
    Budapest

Recent Profile Visitors

1,566 profile views
  1. Hi, I would simply ceate a script which creates lock file when a hip is opened for the reason more users should not overwrite their scenes. The lock file should be deleted when a new hip is about to open. So i created a hip event in my scene and check which event is fired (i check the opening hip name). My problem is that I can not fire an event before the new hip is opened ( to clear the lock file ) the event always shows the opened hip not the hip which is being closed. Any idea ? thx!!! G My scripts: ---Registering the event----- hipFileEvent_script = """ def hipFileEventsFired( event_type): import houdini.illessz.events as ev reload( ev) ev.hipFileEvents( event_type) """ hou.setSessionModuleSource( hipFileEvent_script ) hou.hipFile.addEventCallback( hou.session.hipFileEventsFired) ---- The event ---- def hipFileEvents( event_type): # print kwargs if event_type == hou.hipFileEventType.BeforeClear: if not hou.hipFile.isLoadingHipFile() and not hou.hipFile.name()=='untitled.hip': print 'clear event %s' % hou.hipFile.name() else: # print 'clear ?' pass print event_type, hou.hipFile.name() if event_type == hou.hipFileEventType.BeforeLoad: print 'before load event %s' % hou.hipFile.name() # hou.hipFile.removeEventCallback( hou.session.hipFileEventsFired) OUTPUTS: hipFileEventType.BeforeLoad X:/temp/saveTest.hip before load event X:/temp/saveTest.hip hipFileEventType.BeforeClear X:/temp/saveTest.hip hipFileEventType.AfterClear X:/temp/saveTest.hip hipFileEventType.AfterLoad X:/temp/saveTest.hip hipFileEventType.BeforeLoad X:/temp/saveTestB.hip before load event X:/temp/saveTestB.hip hipFileEventType.BeforeClear X:/temp/saveTestB.hip hipData deleted X:/temp/saveTestB.hip hipFileEventType.AfterClear X:/temp/saveTestB.hip hipFileEventType.AfterLoad X:/temp/saveTestB.hip
  2. Hi, I would simply ceate a script which creates lock file when a hip is opened for the reason more users should not overwrite their scenes. The lock file should be deleted when a new hip is about to open. So i created a hip event in my scene and check which event is fired (i check the opening hip name). My problem is that I can not fire an event before the new hip is opened ( to clear the lock file ) the event always shows the opened hip not the hip which is being closed. Any idea ? thx!!! G My scripts: ---Registering the event----- hipFileEvent_script = """ def hipFileEventsFired( event_type): import houdini.illessz.events as ev reload( ev) ev.hipFileEvents( event_type) """ hou.setSessionModuleSource( hipFileEvent_script ) hou.hipFile.addEventCallback( hou.session.hipFileEventsFired) ---- The event ---- def hipFileEvents( event_type): # print kwargs if event_type == hou.hipFileEventType.BeforeClear: if not hou.hipFile.isLoadingHipFile() and not hou.hipFile.name()=='untitled.hip': print 'clear event %s' % hou.hipFile.name() else: # print 'clear ?' pass print event_type, hou.hipFile.name() if event_type == hou.hipFileEventType.BeforeLoad: print 'before load event %s' % hou.hipFile.name() # hou.hipFile.removeEventCallback( hou.session.hipFileEventsFired)
  3. Hi, When using Light export can I define the name of the created channel name for each light ? I mean the first light channel would be not hlight1_diffuse but diffuse_1 and so on.. So I would not add the name into the channel but I would use the light number from the list of lights in scene . If we have 10 lights the fisrt would be 1 the last is 10. Thx!
  4. Hi, Can the Network Editor View be 'placed' without zoom on a node (home) ? I tried the setCursorPosition but not worked. Any Idea ? THX! G
  5. Hi, Can it be possible ? If I have an invisible parameter but I would like to see its keys on the timeline. Just a kind of visual purpose. A similar thing like a DOP cached frames. THX! G
  6. Can I force the scene view to 'homeToSelection' ? I found the hou.GeometryViewport class but how can I get it in h16.5 ? THX!! G
  7. Sadly not. I didn't mean that. So .. when i run my script I update the selection too to see the user what property is wrong for example. And then in the script I pop up an asking dialog. But the property page is only refreshed when the user has answered the pop up dialog. So i mean i need a refresh among the script lines of the UI. THX! G
  8. Hi, Can I force Houdini UI to update selected object property page ( Or refresh all Houdini UI ). ( I change the selection in a python scipt ) Thanks !! G
  9. Force to update Menu Script from Python

    Thanks! Works!
  10. Hi, I have a button strip parm which is dependent on a parameter on the node itself. So when the parameter changes the button strip changes too. How do i force houdini to recook the menu items ? Thanks in Advance ! ! G
  11. Hi ! Can anyone help me how to acces the menu from script (maybe hscript) : scene view / Camera / Restore Previous Camera. Thanks in advance ! G
  12. Hi, Can I register a shortcut, I mean a keyboard event for a specified node in Houdini Python ? Thanks, G
  13. Hi All, Can a node store the sub-component selection of it but the node is not shown at the scene viewer ( but for example selected at the network editor ). And how can I get it ? G
×