How to convert an int slider to a toggle checkbox

   1360   0   1
User Avatar
Member
3 posts
Joined: Oct. 2016
Offline
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

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

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:


houdini.label STRING “Auto Gamma”
min FLOAT 0
softmax FLOAT 1

any help will be appreciated
  • Quick Links