[Bf-committers] Do drivers have to be blocked as python scripts?

Joshua Leung aligorith at gmail.com
Fri May 23 13:51:38 CEST 2014


IIRC, we are already only blocking the drivers where Python code is used.
To be specific, if it's of type "scripted expression" it contains Python
code of some sort. Thus, if you can set up your drivers in a way which
doesn't require an expression to be evaluated, you could avoid these
problems. For example:
- if you've just got a single variable, then just use "averaged value", or
- if you're summing the results of two variables just use "sum",
- if you're applying some trig function to the value or just some scale
factor, it's perfectly fine to do by using a suitable combination of
FModifiers and/or keyframes on the driver FCurve)

Of course, this still leaves some situations unable to be resolved (i.e. if
you need a custom function to perform some logic given the variables,
outputting a suitable value based on those). In which case, your only
choice there is to find some way to ensure that the security is disabled on
that file when you go to use/render it.


Regards,
Joshua



On Fri, May 23, 2014 at 10:26 PM, Paolo Acampora <palucam at gmail.com> wrote:

> This is an issue at our studio as well, I don't see any rationale in these
> overly security concerns, it just prevents you to work.
>
>
> 2014-05-23 12:06 GMT+02:00 Vilem Novak <pildanovak at post.cz>:
>
> > Hello,
> > I realize how important is the security when .blend files are
> distributed,
> > but I thought, is there a way to exclude drivers from the relatively new
> > strict blocking mechanism?
> >
> > To me as animator, it caused allready many problems.
> > Last is ruining several days of rendertime on a renderfarm which has
> > scripts
> > blocked(as is by default!). Actually, it happened to me allready several
> > times- setting up renders, render nodes, and forgetting about some
> drivers
> > and the new feature.
> > I realized so far none of the crowd-render farms for blender don't
> support
> > scripts on (sheepit, burp). That it of course a logical choice.
> >
> > So the idea is - can there be some check to determine if a driver is
> > actually a python script? If it's using any commands, and not only
> > numerical
> > / logical operators? And then, could such simple drivers be enabled?
> >
> > It would really save my life very often. Now I have to write a script
> that
> > bakes all drivers before sending file to render farm...
> >
> > Regards
> > Vilem
> > _______________________________________________
> > Bf-committers mailing list
> > Bf-committers at blender.org
> > http://lists.blender.org/mailman/listinfo/bf-committers
> >
>
>
>
> --
> Paolo Acampora, palucam at gmail.com
> Thecnical Director at MAD entertainment, Naples (Italy)
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>


More information about the Bf-committers mailing list