Notifications
Clear all

[Closed] Get the List of Selection in API

How to get the list of selection in api?
and how to iterate them?
thx

6 Replies

API? what do you mean, can you put an example?

Cheers.

1 Reply
(@gohkgohk)
Joined: 11 months ago

Posts: 0

oops— is sdk

I can’t help, i don’t know anything about the SDK

I wish you luck!

Cheers.

You need to use the CoreInterface. Here’s how:

int iNbOfSelectedNodes = GetCOREInterface()->GetSelNodeCount();
for (int i = 0; i < iNbOfSelectedNodes; ++i)
{
INode* pCurrentNode = GetCOREInterface()->GetSelNode(i);
// Your code here
}

Hope it’s helping.

You need to use the CoreInterface. Here’s how:

int iNbOfSelectedNodes = GetCOREInterface()->GetSelNodeCount();
 for (int i = 0; i < iNbOfSelectedNodes; ++i)
 {
   	INode* pCurrentNode = GetCOREInterface()->GetSelNode(i);
   	// Le reste du code ici.
 }

You need to pass through the COREInterface. Here’s an example:

int iNbOfSelectedNodes = GetCOREInterface()->GetSelNodeCount();
 for (int i = 0; i < iNbOfSelectedNodes; ++i)
 {
 	INode* pCurrentNode = GetCOREInterface()->GetSelNode(i);
 	// Your code here.
 }