[opensource-dev] retrieving scripts attached to an object
carlo at alinoe.com
Mon Feb 15 10:20:45 PST 2010
Could it be that you don't select the prim?
If it isn't selected, the contents aren't synced.
On Mon, Feb 15, 2010 at 04:47:14PM +0200, Mahmoud Ismail wrote:
> 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
> here's my button code:
> InventoryObjectList inventory_list;
> llinfos<<"Loop on inv_objects "<<llendl;
> for(InventoryObjectList::iterator inv_obj=inventory_list.begin() ;inv_obj!=
> LLPointer<LLInventoryObject> obj=*inv_obj;
> llinfos<<"Type : "<<obj->getType() << " Name : "<<obj->
> anyone could tell me why i've to open the script file in order to be known as
> an inventory item for that object
> another request, if anyone have any material could help me in understanding of
> the workflow of the scripting module (from creating scripts till saving) please
> pass it.
> thanks in advance,
> Best Regards,
> Mahmoud Ismal
> Policies and (un)subscribe information available here:
> Please read the policies before posting to keep unmoderated posting privileges
Carlo Wood <carlo at alinoe.com>
More information about the opensource-dev