Hi,
I am trying to display sim info (parameters) data on Houdini viewports as text via Houdini python state.
Now I have realised that flipbook does not capture these overlay text / info generated by python viewerstaes
Is there any way to capture python state info panels text overlay on viewport with flipbook tool.
Thanks
Himanshu
Found 6 posts.
Search results Show results as topic list.
Technical Discussion » Flipbook tool does not capture "scene_viewer.hudInfo" text
- lightreacher
- 7 posts
- Offline
Technical Discussion » Event Trigger for python callback on drag and drop
- lightreacher
- 7 posts
- Offline
DoudiniCan you share your working test script. How can I enable trigger on shotgun url drop?
setUrls
Technical Discussion » Enable shotgun's urls drag and drop into Houdini
- lightreacher
- 7 posts
- Offline
I am trying to get some caches in Houdini by draging shotgun urls. I am using externaldragdrop.py for Houdini 17.5, How can I add support for url mimedata to do so?
Technical Discussion » Using Otls ui active tab based switch input?
- lightreacher
- 7 posts
- Offline
Hi all, I am trying to create a otl for write and read sim/geo. I have a rop geometry node with two file sop and one switch sop in subnet. I am creating two tab folder , one for out and other is for in . i am using switch sop to switch between read and write file sop, How to activate switch value based on active tab on otl ui?
Technical Discussion » hou.FlipbookSettings : giving error
- lightreacher
- 7 posts
- Offline
I am trying to set mplay preview's saving location using hip location.
for this I am following help document
any help on this?
for this I am following help document
scene = hou.SceneViewer flipbook_options = scene.flipbookSettings().stash() flipbook_options.frameRange( (1,120) ) flipbook_options.output('C:\Users\sunlight\Documents\preivews') scene.flipbook(scene.curViewport(), flipbook_options) when I run : hou.SceneViewer.flipbookSettings() Output is :unbound method flipbookSettings() must be called with SceneViewer instance as first argument.
any help on this?
Edited by lightreacher - Nov. 10, 2017 09:53:15
Technical Discussion » Houdini has full python PIL module or it is minimal?
- lightreacher
- 7 posts
- Offline
Hi everyone,
I am trying to add a slate frame(company logo, artist data etc) just before the mplay preview.I am testing the pil module, comes with houdini itself.
For testing i was running below code from self tool.
but it is giving me error
If I run this code from my window python , its working.
Thanking you guys in advance, need help !!!!
I am trying to add a slate frame(company logo, artist data etc) just before the mplay preview.I am testing the pil module, comes with houdini itself.
For testing i was running below code from self tool.
from PIL import Image, ImageDraw, ImageFont image = Image.open('C:\Users\sunlight\Desktop\Houdini3D_icon.png') width, height = image.size draw = ImageDraw.Draw(image) text = "A watermark" font = ImageFont.truetype('C:\Users\sunlight\Desktop\arial.ttf', 12) textwidth, textheight = draw.textsize(text, font) # calculate the x,y coordinates of the text margin = 5 x = width - textwidth - margin y = height - textheight - margin # draw watermark in the bottom right corner draw.text((x, y), text, font=font) image.save('cats.png')
but it is giving me error
Traceback (most recent call last): File "tool_1", line 9, in <module> File "C:\PROGRA~1\SIDEEF~1\HOUDIN~1.736\python27\lib\site-packages\PIL\ImageFont.py", line 260, in truetype return FreeTypeFont(font, size, index, encoding) File "C:\PROGRA~1\SIDEEF~1\HOUDIN~1.736\python27\lib\site-packages\PIL\ImageFont.py", line 140, in __init__ self.font = core.getfont(font, size, index, encoding) File "C:\PROGRA~1\SIDEEF~1\HOUDIN~1.736\python27\lib\site-packages\PIL\ImageFont.py", line 42, in __getattr__ raise ImportError("The _imagingft C module is not installed") ImportError: The _imagingft C module is not installed
If I run this code from my window python , its working.
Thanking you guys in advance, need help !!!!
-
- Quick Links