custom attributeMenu for HyperGraph

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  01 January 2013
custom attributeMenu for HyperGraph

Hi guys,
I want to create custom attributeMenu that has to pop up when i connect custom nodes in HyperGraph. I don't want to see all suitable input attributes, but only some of them. Documentation says that "regPulldownMenuCommand" arg in attributeMenu is responsible for that. This is callback, which should parse arguments and return 1 and initialize menu items, if we have proper node and plug.

Here is a code:
global proc int cbTestNode(string $editorName, string $nodeName, string $plug, string $mode, string $menuType){
    menuItem -l "item 1";
    menuItem -l "item 2";    
    return 1;

$cbID = `attributeMenu -rpm "cbTestNode"`; // reg callback

When i try to use it, hyperGraph complains about menu items. "// Menu Item menu not found. // ". `setParent -q -m` tells me NONE. Obviously i have to parent items to menu, but how to get menu itself?
  01 January 2013
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 10:45 PM.

Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.