Dynamic loading texture

Discussions about rendering in SOFTIMAGE©
anhungxadieu
Posts: 175
Joined: 17 Apr 2014, 10:39
Skype: nguyenvuducthuy

Dynamic loading texture

Post by anhungxadieu » 15 Mar 2018, 06:02

Hi, i want to animate a texture by loading its from an folder, for example in frame 0 i load texture "A" and in frame 10 i load texture "B" and so on ... Is there a way to do it in softimage?

caledonian_tartan
Posts: 253
Joined: 17 Feb 2010, 15:13

Re: Dynamic loading texture

Post by caledonian_tartan » 15 Mar 2018, 08:53

shure!
import as image sequence, drive time source.
check out this post:
http://www.si-community.com/community/v ... =15&t=2786
SI 2015 @ WIN7-64

anhungxadieu
Posts: 175
Joined: 17 Apr 2014, 10:39
Skype: nguyenvuducthuy

Re: Dynamic loading texture

Post by anhungxadieu » 15 Mar 2018, 09:08

Thanks for the answer,
But it's only work with particle in that case source time can be drive by ice attribute

anhungxadieu
Posts: 175
Joined: 17 Apr 2014, 10:39
Skype: nguyenvuducthuy

Re: Dynamic loading texture

Post by anhungxadieu » 15 Mar 2018, 10:49

Hi,
i found the way to do it simple create a script OP

Code: Select all

	filePath = In_UpdateContext.filePath.Value
	obj = In_UpdateContext.obj.Value
	fileName = In_UpdateContext.num.Value
	file = filePath + "\\" + obj +"_"+ str(fileName).zfill(2) + ".png"
	sel = Application.ActiveSceneRoot.findChild(obj)
	exportClip = sel.Material.CurrentImageClip
	exportSource = exportClip.Source
	exportSource.Parameters("FileName").Value = file