Home Tutorials Download Beta Store Forum Documentation KnowledgeBase Wiki Blog

ShiVa3D

Return to Plugins

How to Get Client Type in the Plugin  

ShiVa Plugin Development

How to Get Client Type in the Plugin

Postby WDragoon » 14 Jul 2011, 03:48

I need know the type of client in the Plugin,
then decide what function can use by user,
example :
if in the ShiVa editor, user can use all function to test our product.
if in the player, we will check the what kind of licence of user own,
then open correspond function.

Thank you.
WDragoon
Fresh Boarder
Fresh Boarder
 
Posts: 4

Re: How to Get Client Type in the Plugin  

Postby NiCoX » 14 Jul 2011, 08:44

Hi,

A simple method is to provide a "myplugin.activate ( sActivationKey )" function that the user will have to call before using the plug-in functions. In that function, you will be able to call the following function to get the client type:

http://www.stonetrip.com/developer/doc/api/system-getClientType

Just compare the returned value to S3DX::system.kClientTypeEditor.
User avatar
NiCoX
Platinum Boarder
Platinum Boarder
 
Posts: 5652
Location: France

Re: How to Get Client Type in the Plugin

Postby WDragoon » 21 Jul 2011, 08:55

Nicox,

Hi, thank your reply.
I had try it, it is succeed, thank you very much.

Arthur
WDragoon
Fresh Boarder
Fresh Boarder
 
Posts: 4


Return to Plugins

cron