Interface: paramPublishMgr

NEW in 3ds Max 2016: ParamPublishMgr is a simple tool for adding a Custom Attribute and connecting it to the source parameter.

Interfaces > Core Interfaces > paramPublishMgr

 

   

Core Interfaces - Quick Navigation

   

Properties:

No properties exposed.

   

Methods:

<void>paramPublishMgr.start()

This method will launch the parameter publish UI mode.

   

<void>paramPublishMgr.addParameterBySubNum <maxObject>paramParent <index>paramSubnum

This method will add a parameter into the ready-to-publish parameter list.

Only publishable parameters will be added successfully, and they will be published when paramPublishMgr.start() is called.

paramParent is the parent of the selected animatable parameter in Track View.

paramSubNum is the index of the selected animatable parameter in Track View.

   

Actions:

No actions exposed.

EXAMPLE

--Create a Geosphere
--Open TrackView, select the Radius parameter of the Geosphere
--Now let's initiate the Parameter Publishing.
--Get the paramBlock of the selected parameter:
anim = trackviews.current.getParentOfSelected 1 
-->ReferenceTarget:ParamBlock2
show anim --let's see what we got - it is the Geosphere's paramBlock
-->  .Hemisphere
-->  .Segments
-->  .Radius : float
-->  .Smooth
-->false
--Now get the index of the Radius track within the paramBlock:
subnum = trackviews.current.getSelectedSubNum 1 
-->3
--We can now add the parameter using these two values:
paramPublishMgr.addParameterBySubNum anim subnum 
-->OK
paramPublishMgr.start() --start the parameter publishing
-->OK
--At this point, a dotted line will appear in the viewport 
--Click on the object (e.g. the Geosphere) to add a Custom Attribute
--and expose the Radius as a CA parameter...