ShiVa3D
How to Get Client Type in the Plugin
ShiVa Plugin DevelopmentHow to Get Client Type in the Plugin
by 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.
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

- Posts: 4
Re: How to Get Client Type in the Plugin
by 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.
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.
-

NiCoX - Platinum Boarder

- Posts: 5626
- Location: France
Re: How to Get Client Type in the Plugin
by WDragoon » 21 Jul 2011, 08:55
Nicox,
Hi, thank your reply.
I had try it, it is succeed, thank you very much.
Arthur
Hi, thank your reply.
I had try it, it is succeed, thank you very much.
Arthur
- WDragoon
- Fresh Boarder

- Posts: 4
3 posts
• Page 1 of 1