|
Data Juggler
|
Data Juggler
Posted 6 Years Ago
|
|
Group: Forum Members
Last Active: 9 Months Ago
Posts: 1.8K,
Visits: 5.6K
|
So Clone, is how I duplicate an object? Thanks,
Creator of the free website: PixelDatabase.Net A Free Online Text Based Image Editor

|
|
Kelleytoons
|
Kelleytoons
Posted 6 Years Ago
|
|
Group: Forum Members
Last Active: Last Year
Posts: 9.2K,
Visits: 22.1K
|
Luke showed the link with the new API (last week or so) allowing duping of an object. I haven't installed yet so I can't say how it works (but if he gets time maybe he'll provide an example. Assuming one isn't already in the download).
Alienware Aurora R16, Win 11, i9-149000KF, 3.20GHz CPU, 64GB RAM, RTX 4090 (24GB), Samsung 870 Pro 8TB, Gen3 MVNe M-2 SSD, 4TBx2, 39" Alienware Widescreen Monitor Mike "ex-genius" Kelley
|
|
videodv
|
videodv
Posted 6 Years Ago
|
|
Group: Forum Members
Last Active: 2 Years Ago
Posts: 342,
Visits: 12.0K
|
Hi Just place a character in the scene and run this script dont forget to move the character as they will be in the same place.
import RLPy
avatar_list = RLPy.RScene.GetAvatars() avatar = avatar_list[0] # basic information print(avatar.GetName()) print(avatar.GetID()) print(avatar.GetType()) # RLPy.EObjectType_Avatar # get control transform_control = avatar.GetControl("Transform") # type RTransformControl avatar_path_position_control = avatar.GetControl("PathPosition") # type RFloatControl avatar_path_offset_control = avatar.GetControl("PathOffset") # type RTransformControl #clone object clone_avatar = avatar.Clone() print( clone_avatar ) #is selected RLPy.RScene.SelectObject(avatar) print(avatar.IsSelected()) #True
Hope it helps Chris.
|