Jump to content


How to display the icon in the wiki style docs?


  • Please log in to reply
6 replies to this topic

#1 magneto

magneto

    Grand Master

  • Members
  • PipPipPipPipPip
  • 1,336 posts
  • Joined: 04-October 11
  • Location:Canada
  • Name:Ryan K

Posted 12 June 2012 - 01:24 AM

When writing documentation for your digital asset, does anyone knows how to reference the icon?

I use this but it doesn't show up:

#icon: opdef:Sop/bridge?IconImage



Thanks :)

#2 Zero

Zero

    Peon

  • Members
  • Pip
  • 13 posts
  • Joined: 13-June 10
  • Name:Michael Scarpa

Posted 12 June 2012 - 04:22 AM

This works for me:
#largeicon: /icons/large/MISC/python.png

The path above is relative to
$HFS/houdini/help
.

Hope this helps.

#3 magneto

magneto

    Grand Master

  • Members
  • PipPipPipPipPip
  • 1,336 posts
  • Joined: 04-October 11
  • Location:Canada
  • Name:Ryan K

Posted 12 June 2012 - 05:15 AM

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, 12 June 2012 - 05:21 AM.


#4 old school

old school

    Houdini Master

  • Members
  • PipPipPipPip
  • 916 posts
  • Joined: 21-March 03
  • Location:The Great White North

Posted 14 June 2012 - 04:37 AM

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?
There's at least one school like the old school!

#5 magneto

magneto

    Grand Master

  • Members
  • PipPipPipPipPip
  • 1,336 posts
  • Joined: 04-October 11
  • Location:Canada
  • Name:Ryan K

Posted 14 June 2012 - 05:54 AM

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 :)

#6 old school

old school

    Houdini Master

  • Members
  • PipPipPipPip
  • 916 posts
  • Joined: 21-March 03
  • Location:The Great White North

Posted 14 June 2012 - 02:06 PM

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.
There's at least one school like the old school!

#7 magneto

magneto

    Grand Master

  • Members
  • PipPipPipPipPip
  • 1,336 posts
  • Joined: 04-October 11
  • Location:Canada
  • Name:Ryan K

Posted 15 June 2012 - 07:55 PM

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





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users