more than one line of code in menu ?

Post Reply
User avatar
eternal art
Posts: 93
Joined: 08 Jun 2009, 22:48
Location: UAE - Abu Dhabi

more than one line of code in menu ?

Post by eternal art » 14 Jan 2012, 19:19

I have a menu in vbscript and want to add more than one line of code to the one of my menu item without make a command for it ?
example :

Code: Select all

Set item =  popup.AddItem ("Dragon", "ObjImport Application.InstallationPath( siUserPath ) & ""\Addons\XSI-Shelfy\Data\Obj\Dragon.obj"", 1, 0, False, False , False, False" )
this code will import my obj , i want to do many other things beside this import to the same menu item .

i hope my quesion is clear enough .
3D Supervisor - Production House .

User avatar
xsisupport
Posts: 713
Joined: 09 Jun 2009, 11:02
Location: Montreal Canada
Contact:

Re: more than one line of code in menu ?

Post by xsisupport » 14 Jan 2012, 19:46

The second argument to Menu.AddItem is a style, not a line of code.
Use AddCallbackItem.
// Steve Blair
// "You're not a runner, you're just a guy who runs" -- my wife
//
// My Blogs: Arnold | Softimage

User avatar
eternal art
Posts: 93
Joined: 08 Jun 2009, 22:48
Location: UAE - Abu Dhabi

Re: more than one line of code in menu ?

Post by eternal art » 14 Jan 2012, 20:30

sorry i post it in a wrong place , it's an xpop menu not standart xsi menu .
i post it again in the right thread
viewtopic.php?f=27&t=909&p=15062#p15062
sorry for confusion .
3D Supervisor - Production House .

Post Reply

Who is online

Users browsing this forum: No registered users and 62 guests