[Bf-cycles] Changing image filename at runtime?

Mohamed Sakr 3dsakr at gmail.com
Fri Apr 12 12:59:06 CEST 2019


 if (pd->filename && pd->builtin_data) //you may not need builtin_data
{
_scene->image_manager->tag_reload_image(
pd->filename.c_str(),
pd->builtin_data,
pd->interpolation,
EXTENSION_CLIP,
true);
               }

On Fri, Apr 12, 2019 at 7:53 AM F Escobar <materialesescobar at hotmail.es>
wrote:

> ---
> you may need to do image_manager->tag_update(scene), probably the same for
> shader_manager
> ---
>
> I supposed that too but unfortunatly image_manager has no tag_update(scene)
>
> Regards, F.
> ------------------------------
> *De:* Bf-cycles <bf-cycles-bounces at blender.org> en nombre de Mohamed Sakr
> <3dsakr at gmail.com>
> *Enviado:* jueves, 11 de abril de 2019 14:59
> *Para:* Discussion list to assist Cycles render engine developers
> *Asunto:* Re: [Bf-cycles] Changing image filename at runtime?
>
> you may need to do image_manager->tag_update(scene), probably the same for
> shader_manager
>
> On Thu, Apr 11, 2019 at 1:30 PM F Escobar <materialesescobar at hotmail.es>
> wrote:
>
> I'm trying to change the image I'm using for scene illumination but
> besides I can rotate it properly changing the filename seems to have no
> effect.
>
> Any tip on this? thank you in advance!
> _______________________________________________
> Bf-cycles mailing list
> Bf-cycles at blender.org
> https://lists.blender.org/mailman/listinfo/bf-cycles
>
> _______________________________________________
> Bf-cycles mailing list
> Bf-cycles at blender.org
> https://lists.blender.org/mailman/listinfo/bf-cycles
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.blender.org/pipermail/bf-cycles/attachments/20190412/52a4f70b/attachment.html>


More information about the Bf-cycles mailing list