Jump to content

How to display the icon in the wiki style docs?


Recommended Posts

Thanks, does the icon file have to be present there on disk? I am trying to make the operator self contained, so that's why was trying to use the icon already saved inside the OTL.

Any way to do that?

Edited by magneto
Link to comment
Share on other sites

Yes you can inject your icon image (with a sensible resolution of course) as an extra file in your asset and then use that as your asset's icon.

Given your first post, you should add a new image file called IconImage.png (as a .png image file) to your asset, then use in the help:

#icon: opdef:Sop/bridge?IconImage.png

I usually name the help images something more appropriate. If it is a bridge asset, why not use something like BridgeIcon.png?

  • Like 1
Link to comment
Share on other sites

Thanks oldschool, will try this at lunch. You are right, bridgeIcon is a better name.

I wonder how Houdini stores the OTL icon though? I mean the one you choose in the first tab as the icon of the asset which Houdini uses in the network editor, etc. Is this not stored as some sort of Extra File inside the OTL?

That's why my thought was, since the path in the Icon parameter looks like the one you posted, it must be stored in the OTL, thus should be accessible for the help card too.

Not a big issue, just wondering so that I don't have to store 2 different icons :)

Link to comment
Share on other sites

Yep you can use the same icon embedded in the asset for both the node icon and the help icon.

Almost all default assets that ship with Houdini source their icons from the Houdini installation and not from an icon image embedded in the asset fyi.

  • Like 1
Link to comment
Share on other sites

Thanks oldschool. Reason I wanted to use the embedded icon is because I want to upload it to Houdini exchange.

Btw I tried the same path used in the icon parameter of the asset, in the help icon, but it doesn't show up.

Basically this:

#icon: opdef:Sop/bridge?IconImage

Link to comment
Share on other sites

  • 7 years later...
  • 1 year later...

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...