{"action":"created","issue":{"url":"https://api.github.com/repos/20tab/UnrealEnginePython/issues/424","repository_url":"https://api.github.com/repos/20tab/UnrealEnginePython","labels_url":"https://api.github.com/repos/20tab/UnrealEnginePython/issues/424/labels{/name}","comments_url":"https://api.github.com/repos/20tab/UnrealEnginePython/issues/424/comments","events_url":"https://api.github.com/repos/20tab/UnrealEnginePython/issues/424/events","html_url":"https://github.com/20tab/UnrealEnginePython/pull/424","id":327351143,"number":424,"title":"fix rename asset definition","user":{"login":"rdsgautier","id":34050280,"avatar_url":"https://avatars1.githubusercontent.com/u/34050280?v=4","gravatar_id":"","url":"https://api.github.com/users/rdsgautier","html_url":"https://github.com/rdsgautier","followers_url":"https://api.github.com/users/rdsgautier/followers","following_url":"https://api.github.com/users/rdsgautier/following{/other_user}","gists_url":"https://api.github.com/users/rdsgautier/gists{/gist_id}","starred_url":"https://api.github.com/users/rdsgautier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdsgautier/subscriptions","organizations_url":"https://api.github.com/users/rdsgautier/orgs","repos_url":"https://api.github.com/users/rdsgautier/repos","events_url":"https://api.github.com/users/rdsgautier/events{/privacy}","received_events_url":"https://api.github.com/users/rdsgautier/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-29T14:40:03Z","updated_at":"2018-05-29T14:42:07Z","closed_at":"2018-05-29T14:42:02Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/20tab/UnrealEnginePython/pulls/424","html_url":"https://github.com/20tab/UnrealEnginePython/pull/424","diff_url":"https://github.com/20tab/UnrealEnginePython/pull/424.diff","patch_url":"https://github.com/20tab/UnrealEnginePython/pull/424.patch"},"body":"have the same behaviour than context menu rename in content browser:\r\ncheckout redirector, mark for add newly created renamed asset.\r\n\r\npython code sample:\r\n_filter = FARFilter()\r\n_filter.class_names = ['Texture2D']\r\ntextures = ue.get_assets_by_filter(_filter)\r\n\r\nfor texture in textures:\r\n\tname = texture.get_name()\t\t\t\r\n\tindex = name.rfind('_BC') \r\n\tif index > -1 : \r\n\t\tpathName = texture.get_path_name()\r\n\t\tnewname = name[0 : index] + '_basecolor'\r\n\t\tue.rename_asset(pathName, newname)"},"comment":{"url":"https://api.github.com/repos/20tab/UnrealEnginePython/issues/comments/392802037","html_url":"https://github.com/20tab/UnrealEnginePython/pull/424#issuecomment-392802037","issue_url":"https://api.github.com/repos/20tab/UnrealEnginePython/issues/424","id":392802037,"user":{"login":"rdeioris","id":2234592,"avatar_url":"https://avatars3.githubusercontent.com/u/2234592?v=4","gravatar_id":"","url":"https://api.github.com/users/rdeioris","html_url":"https://github.com/rdeioris","followers_url":"https://api.github.com/users/rdeioris/followers","following_url":"https://api.github.com/users/rdeioris/following{/other_user}","gists_url":"https://api.github.com/users/rdeioris/gists{/gist_id}","starred_url":"https://api.github.com/users/rdeioris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdeioris/subscriptions","organizations_url":"https://api.github.com/users/rdeioris/orgs","repos_url":"https://api.github.com/users/rdeioris/repos","events_url":"https://api.github.com/users/rdeioris/events{/privacy}","received_events_url":"https://api.github.com/users/rdeioris/received_events","type":"User","site_admin":false},"created_at":"2018-05-29T14:42:07Z","updated_at":"2018-05-29T14:42:07Z","author_association":"COLLABORATOR","body":"Thanks a lot"}}
{"actor":{"display_login":"rdeioris"}}