On/Off parameter switches

I have an apartment scene where the vendor has added simple on/off switches in the parameters tab for the lights, which change the emission settings. I'd like to do the same thing for my scenes, is it easy to do, or does it require scripting knowlege?

Comments

  • MasterstrokeMasterstroke Posts: 1,983

    If you create a new parameter, there is a roll down menue. Select "bool" to get to the on/off option.

  • GordigGordig Posts: 10,053

    Masterstroke said:

    If you create a new parameter, there is a roll down menue. Select "bool" to get to the on/off option.

    That's only half (or less) of the solution, though. You'll need a script to enable ERC control over surface properties, which I can dig up for you tomorrow if nobody beats me to it. Also, I've found the Boolean control to be...unintuitive, to say the least. 

  • mmoch25mmoch25 Posts: 131

    I appreciate the replies, but if it's relatively complicated, then you don't need to bother yourself. It's for personal use only, it's a it would be nice, but not necessary type scenario, and I'm happy enough with the material presets. The way you're talking, I'm going to need a step by step guide, outside of creating a morph dial, I have no idea how to create a new parameter dial let alone selecting the bool option.

    Thanks anyway guys.

  • mmoch25mmoch25 Posts: 131

    Scratch the last bit, I just checked out edit mode, and discovered where to create a new parameter.

  • Gordig said:

    You'll need a script to enable ERC control over surface properties, which I can dig up for you tomorrow if nobody beats me to it.

    I am interested in the script, if you don't mind. :) 

  • GordigGordig Posts: 10,053

    Oh, right, I forgot about this thread. Here's what I could find:

    var item = Scene.getPrimarySelection();if ( item ) {	var vis = item.findPropertyByLabel( "Visible" );	if ( vis ) {		vis.setCanAnimate( true );	}}

    That's specifically for enabling the visibility parameter to be animated and ERC frozen. If I have a script for enabling surface properties, I can't find it.

Sign In or Register to comment.