Eyeon:Script/Reference/Applications/Fusion/Classes/Operator/SetCurrentSettings

From VFXPedia

< Eyeon:Script | Reference | Applications | Fusion | Classes | Operator
Revision as of 07:44, 19 November 2009 by Daniel (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Tool : SetCurrentSettings

Summary

Changes the tool's current settings slot. If the slot is not empty, the function will change all the tool's Inputs to the settings stored in that slot.

A tool has 6 different collections ("slots") of settings. By default, it uses slot 1. Changing the current settings slot may change any or all of the tool's Inputs to new values, or new animations, stored in the new slot (if any).

All of the tool's previous settings are stored in the old slot, before changing to a new slot.


Arguments

SetCurrentSettings(number index)


index
A numerical index of 1 or greater.


Returns

None.


Example

slot = tool.GetCurrentSettings()
 
-- change to new slot, and turn off the effect
tool.SetCurrentSettings(slot + 1)  
tool.Blend[comp.CurrentTime] = 0.0
print(tool.Name..": Before...)
 
-- wait(a few seconds)
 
-- change back to the old slot, and turn the effect back on
tool.SetCurrentSettings(slot)
tool.Blend[comp.CurrentTime] = 1.0
print(tool.Name..": After!)

Requirements

  • eyeonScript 5.0
  • Fusion 5.3


See Also


Tips for SetCurrentSettings (edit)

EyeonTips:Script/Reference/Applications/Fusion/Classes/Operator/SetCurrentSettings