Notifications
Clear all

[Closed] V-ray camera script error in need of help

As a nigh helpless neophyte I need more assistance once again. I have a script that rotates a camera around a model rendering with every degree, it works fine on normal 3DSM using either scanline or mental ray, but for some reason it appears to only move the camera for the first 100 frames when rendering scenes that use V-ray. I’m assuming this has to do with the timeline being 100 frames by default but I’m not sure. I know it isn’t the movement/path constraint script because I use the same thing to move some lights in the script and those do continue to move after 100 frames.

		cam = Targetcamera orthoProjection:true target:(targetObject pos:centroid)
		cam.name = "temp.bounding.cam"
		viewport.setCamera cam
		-- Create the camera path
		camCircle = Circle radius: camradius pos:[centroid.x,centroid.y,centroid.z+(radius/2)] renderable:off isSelected:on
		pc = path_constraint() --create a path constraint
		cam.pos.controller = pc
		pc.path = camCircle

		deletekeys pc
			
		animate on
		(
			At time 0 (pc.percent = 0.0)
			At time 360(pc.percent = 100.0)
		)


and later


render  camera: cam fromframe: 001 toframe: 360 outputwidth: UPCS quiet: true outputheight: UPCS outputfile: (imagename as string)

The light stuff that seems to work although I see no reason for it to be different than the camera code.



	slight1 =targetSpot rgb:(color 253 213 171) shadowColor:(color 0 0 0) multiplier:0.7 contrast:0 softenDiffuseEdge:0 nearAttenStart:0 nearAttenEnd:40 farAttenStart:80 farAttenEnd:200 decayRadius:40 atmosOpacity:100 atmosColorAmt:100 shadowMultiplier:1 hotspot:130 falloff:140  aspect:1 target:(Targetobject transform:(matrix3 [1,0,0] [0,1,0] [0,0,1] [-41.943,-53.6393,0]))

		slight1.raytracedShadows = on
		slight1.pos = [centroid.x - (radius/2), centroid.y - (radius/2), centroid.z + (radius/2)]
		slight1.target.pos = [centroid.x, centroid.y, centroid.z]

		slight1Circle = Circle radius: (radius/2) pos:[centroid.x,centroid.y,centroid.z+(radius/2)] renderable:off isSelected:on
		
		rot_slc1 = eulerangles 0 0 -45
		rotate slight1circle rot_slc1

		slight1pc = path_constraint() --create a path constraint
		slight1.pos.controller = slight1pc
		slight1pc.path =slight1circle

		deletekeys slight1pc

		animate on
		(
			At time 0 (slight1pc.percent = 0.0)
			At time 360(slight1pc.percent = 100.0)
		)


Thank you very much in advance for your assistance. If it is the time slider as an issue, how to adjust how much is shown on there, and if that isn’t the cause, identifying what the cause is.