Profile Picture

Where does PRINT python method in iclone 8 can be viewed?

Posted By audreyruaburo Last Year
You don't have permission to rate!

Where does PRINT python method in iclone 8 can be viewed?

Author
Message
audreyruaburo
audreyruaburo
Posted Last Year
View Quick Profile
Junior Member

Junior Member (122 reputation)Junior Member (122 reputation)Junior Member (122 reputation)Junior Member (122 reputation)Junior Member (122 reputation)Junior Member (122 reputation)Junior Member (122 reputation)Junior Member (122 reputation)Junior Member (122 reputation)

Group: Forum Members
Last Active: 2 Weeks Ago
Posts: 4, Visits: 153
I'm trying to create a plugin to capture the data send from slimevr to iclone. so i don't need to use BVH convert in blender and send to iclone. but before i got there. I'm learning how to create plugin first
I'm a c# developer for almost a decade. So i just started to create the plugin right away.

I saw this code

from here https://wiki.reallusion.com/IC_Python_API:Animating_A_CharacterBut 
my problem is where can i find the result of the PRINT which view will it be shown?
import math, RLPy#-- Get Characters from current scene --#avatar_list = RLPy.RScene.GetAvatars()#-- Get First Character --#avatar = avatar_list[0]#-- Get Skin Bone Data --#skin_bone = avatar.GetSkeletonComponent().GetSkinBones()#-- Get Motion Bone Data --#motion_bone = avatar.GetSkeletonComponent().GetMotionBones()for bone in skin_bone:    print ("Skin Bone: " + bone.GetName())for bone in motion_bone:    print ("Motion Bone: " + bone.GetName())
4u2ges
4u2ges
Posted Last Year
View Quick Profile
Distinguished Member

Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)

Group: Forum Members
Last Active: 1 hour ago
Posts: 5.3K, Visits: 16.6K
You should bring up the "Console Log" from "Script" menu.

But be aware, the snippet you referred to, is from iClone 7 section of wiki which will not work under iClone 8.
GetMotionBones() was depreciated - https://wiki.reallusion.com/IC8_Python_API
If you are using samples from iClone 7 section you should be referring to changes:
https://docs.google.com/spreadsheets/d/1WUVJ8PunEUzLIB0VcOMUUNef3NY_Z7GL_W2V5388WWM/edit?gid=995806485#gid=995806485
https://wiki.reallusion.com/IC_8_Python_API:Enforcing_Plugin_Compatibility

But generally, a lot of samples do not work as expected (or do not work at all) out of the box.
Even those posted in iClone 8 section still have incompatible functions and attributes (from iClone 7 era), which have to properly replaced/formatted according to the documents above.









Reading This Topic