[opensource-dev] retrieving scripts attached to an object

2010-02-14 Thread Mahmoud Ismail
Hi all,

as a proof of concept i was creating a floater which instantiated by a
button on the Pie Menu
in that floater i've created a Button  in which i was try to get all
inventory items attached to the selected object

but, i found that it gives no script items although there're two script
files "Note: i didn't open these files just press on New Script"
now, sometimes when i opened these files  first then press my button it
gives results

here's my button code:

   InventoryObjectList inventory_list;
object->getInventoryContents(inventory_list);
llinfos<<"Loop on inv_objects "< obj=*inv_obj;
llinfos<<"Type : "

[opensource-dev] retrieving scripts attached to an object

2010-02-15 Thread Mahmoud Ismail
Hi all,

as a proof of concept i was creating a floater which instantiated by a
button on the Pie Menu
in that floater i've created a Button  in which i was try to get all
inventory items attached to the selected object

but, i found that it gives no script items although there're two script
files "Note: i didn't open these files just press on New Script"
now, sometimes when i opened these files  first then press my button it
gives results

here's my button code:

   InventoryObjectList inventory_list;
object->getInventoryContents(inventory_list);
llinfos<<"Loop on inv_objects "< obj=*inv_obj;
llinfos<<"Type : "