Votes
0
Product:
iClone 8
Version:
8.01
Status:
Active
Issue 8658
Attribute Error while loading python script
Hi Reallusion Team,

I try to load a python script, to modify/rotate the camera in the scene. The code I used is the same as the Python API document:
https://wiki.reallusion.com/IC_Python_API:RLPy_RICamera

However, calling RLPy.Time(0) would cause attribute error, and so does camera.SetControl. I have imported RLPy package, could you help figure out why this error is raised?

Also, when I try to load one of the sample code (smooth camera flow, https://github.com/reallusion/iClone/blob/master/SmoothCameraFollow/main.py), I cannot import required packages. Am I missing some steps?
OS: Windows 10
Attachment:
  • screenshot.png
  •  1
  •  309
Submitted bye0324534
1
COMMENTS (1)
Feedback Tracker Admin
Hi Ren,

We're terribly sorry. We have adjusted some scripts for iC8.
Depending on your case, please use the following methods:
RLPy.RTick.FromMilliSecond(0)

And we will update WIKI asap. Thank you!


Soya
Reallusion
1