Jump to content

How to Convert an int slider to a toggle checkbox


rachid

Recommended Posts

I'm trying to share osl shaders for all DCC about 97 osl shaders
but I need some help to convert a int slider to a toggle checkbox(boolean) in mtd file.
here is an example to load a texture
[attr Add]  
    houdini.label       STRING "Add"
    houdini.type         STRING "file:image"
    houdini.callback     STRING "python:import htoa.texture; htoa.texture.imageFilenameCallback()"  
 
This create a button to load texture

Here is an example for popup menu
[attr Coordspace]    
    houdini.type     STRING     "menu:replace:menu"
    houdini.menu     STRING     "world;world;object;object;camera;camera;shader;shader;screen;screen;NDC;NDC"

This create popup menu with  :world, object, camera, shader, screen, NDC    

How can I convert a slider to a toggle checkbox for this:

[attr AutoGamma]
    houdini.label       STRING "Auto Gamma"
    min                 FLOAT     0
    softmax             FLOAT     1

any help will be appreciated

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...