x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How change a staticmesh material using Construction Script

I made a script that can change the static mesh in the editor. In this script caught the number of elements that have the static mesh and lists of materials applied per element. Except that I can not change the material that list. How can I do in order to change these materials?

alt text

alt text

Product Version: UE 4.9
Tags:
sistem_01.jpg (301.8 kB)
sistem_02.jpg (273.6 kB)
more ▼

asked Nov 15 '15 at 01:11 PM in Blueprint Scripting

avatar image

Damien2k15
50 11 19 25

avatar image Damien2k15 Nov 15 '15 at 01:23 PM

Editor images alt text alt text

sistem_03.jpg (710.8 kB)
sistem_04.jpg (710.0 kB)
avatar image Mhousse1247 Nov 15 '15 at 01:36 PM

you want to change only the materials or parameters inside each material?

avatar image Damien2k15 Nov 15 '15 at 02:50 PM

Hi Mhosse

The idea is to change the materials. Actually want to do more things that blueprint.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Here is a solution

alt text

alt text

myactor.png (392.5 kB)
myactor_editor.png (710.1 kB)
more ▼

answered Nov 15 '15 at 03:38 PM

avatar image

Mhousse1247
3.5k 152 29 318

avatar image Damien2k15 Nov 15 '15 at 03:44 PM

Thanks dude.

I go apply and than I post here the result.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question