Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
maxscript [2019/09/20 10:51]
mike [Corona Scatter API]
maxscript [2020/02/05 15:18]
mike [Corona Scatter API]
Line 29: Line 29:
 | ''saveAllElements'' | ''<string>filename'' | Saves all render elements to specified location - same as when using the Corona VFB button functionality. The provided parameter is the filename of beauty channel, other filenames are derived from it. | | ''saveAllElements'' | ''<string>filename'' | Saves all render elements to specified location - same as when using the Corona VFB button functionality. The provided parameter is the filename of beauty channel, other filenames are derived from it. |
 | ''showLightMixSetupDialog'' | | Shows the LightMix setup dialog, if not currently rendering. Added in version 2. | | ''showLightMixSetupDialog'' | | Shows the LightMix setup dialog, if not currently rendering. Added in version 2. |
-| ''getVersionNumber'' | | Returns current Corona version encoded as a single comparable 64-bit integer number. Version numbers returned in earlier builds are always lower than version numbers returned in later builds. Added in version 3. |+| ''getVersionNumber'' | | Returns current Corona version encoded as a single comparable 64-bit integer version number. Version numbers returned in earlier builds are always lower than version numbers returned in later builds. Added in version 3. |
 | ''getVersionString'' | | Returns current Corona version formatted as a human-readable string. It is suitable to be presented to the user. Added in version 3. | | ''getVersionString'' | | Returns current Corona version formatted as a human-readable string. It is suitable to be presented to the user. Added in version 3. |
 | ''getVersionMajorNumber'' | | Returns current Corona version major number. Added in version 3. | | ''getVersionMajorNumber'' | | Returns current Corona version major number. Added in version 3. |
Line 80: Line 80:
  
 ^Function ^Parameters ^description ^ ^Function ^Parameters ^description ^
-| ''getVersionNumber'' | | Returns current plugin version encoded as a single comparable 64-bit integer version number. Version numbers returned in earlier builds are always lower than version numbers returned in later builds. |+| ''getVersionNumber'' | | Returns current plugin version encoded as a single comparable 64-bit integer version number. Version numbers returned in earlier builds are always lower than those returned in later builds. Added in version 6. | 
 +| ''getVersionString'' | | Returns current plugin version formatted as a human-readable string. It is suitable to be presented to the user. Added in version 6. |
 ====== Example scripts ====== ====== Example scripts ======
  
Line 95: Line 96:
 <code>CoronaRenderer.CoronaFp.dumpVfb "D:/yourfilename.cxr"</code> - dumps the current content of the VFB to the specified CXR file.\\  <code>CoronaRenderer.CoronaFp.dumpVfb "D:/yourfilename.cxr"</code> - dumps the current content of the VFB to the specified CXR file.\\ 
 \\ \\
 +<code>CProxy.ProxyFp.fromScene (CProxy()) $Teapot001 @"C:\proxy\myproxy.cgeo"</code> - converts Teapot001 into a proxy and saves it as C:\proxy\myproxy.cgeo \\ 
 +\\ 
 +<code>CProxy.ProxyFp.duplicateToMesh  $my_proxy</code> - converts my_proxy back to mesh.\\ 
 +\\

Log In