3ds Max USD API Reference
Loading...
Searching...
No Matches
MAXUSD_NS_DEF::USDIOCallback Class Reference

Callback related methods. More...

#include <USDIOCallback.h>

Public Member Functions

MaxUSDAPI USDIOCallback (std::shared_ptr< ValueHolderMember > callbackFunction)
 Constructor. More...
 
MaxUSDAPI Value * GetCallback () const
 Get the callback as a Value type. More...
 
MaxUSDAPI void Execute (Value **args, int argCount)
 Executes the callback. More...
 

Protected Attributes

std::shared_ptr< ValueHolderMember > callbackFunction
 

Detailed Description

Callback related methods.

Constructor & Destructor Documentation

◆ USDIOCallback()

MaxUSDAPI MAXUSD_NS_DEF::USDIOCallback::USDIOCallback ( std::shared_ptr< ValueHolderMember >  callbackFunction)

Constructor.

Parameters
callbackFunctionThe maxscript/python callback, wrapped in a value holder to prevent garbage collection.

Member Function Documentation

◆ Execute()

MaxUSDAPI void MAXUSD_NS_DEF::USDIOCallback::Execute ( Value **  args,
int  argCount 
)

Executes the callback.

Parameters
argsThe arguments to pass to the callback function.
argCountArgument count.

◆ GetCallback()

MaxUSDAPI Value * MAXUSD_NS_DEF::USDIOCallback::GetCallback ( ) const

Get the callback as a Value type.

Returns
The callback.

The documentation for this class was generated from the following file: