Changing object's color in Blender [closed] - blender

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I am trying to change the color of my 3D object in Blender. Is there any way to do it run time through actuators?
Thanks in advance

You can use a python script to change the colour. Most likely you want to adjust the diffuse_color property of the material, which is an array of three numbers - [0]=red [1]=green [2]=blue.
While they don't show up in the action editor you can add keyframes to the colour components to create material actions and they will show up in action actuators list to play. To animate a colour you add a keyframe by right-clicking on the colour swatch and selecting Insert keyframe or press I while the mouse is over the colour swatch. Then move to another frame adjust the colour and set another keyframe.

Related

Selecting links in NSTextField or NSTextView using keyboard Tabs, like NSButton [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I have a window in my macOS app which consists of buttons and text with hyperlinks. I created hyperlinks in NSTextView using NSAttributedString.
The question is: Can I allow a user to move focus between buttons and links in the text so that they could Enter/Space that links without using a mouse. Basically, the question is how can I achieve moving firstResponder from a button to a link in the NSTextView's text?
This picture is an example of what I exactly need as a result:
NSTextView does not support focus on regions of text in that manner. If you were to implement some kind of focus in a custom text view, you'd have to handle the focus nativation methods (eg, pressing the tab key), manually parse the text view to find regions you want to focus on, cycle to the next one, and draw some kind of highlighting, whether by using custom drawing, using temporary attributes on the text itself, or perhaps even just moving the selection range. Either way, you will have to do all of that input handling and "focus" movement yourself.
As for merely having clickable links in a text view, the range of text for the link needs to have the NSLinkAttributeName attribute, with the NSURL as the value. See:
https://developer.apple.com/library/content/qa/qa1487/_index.html
http://travisjeffery.com/b/2013/11/url-linking-in-a-non-editable-nstextview/

Elements 11 inner glow [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
Not sure if this is the correct place to ask this but I have an image that I am trying to add an inner glow to. It all works fine if the glow is light coloured but as soon as I try to make the glow a darker colour then it just vanishes altogether.
Does anyone know why this is or how to add a black inner glow?
The blending modes play with the darkness and lightness as u can say ,
and there are 2 main sections that i usually use
1st) Darken modes (shows dark colors only)
like multiply (it shows only black and dark colors and hides white
2nd) lighten modes (shows white colors only)
like screen (which hides black and darken from the photo and appears white and lighten colors)
check this page it may help you understanding blending modes
Because the "Blend Mode" is set to Screen.
If you want to use Dark color, you can either:
Set the Blend mode to "Multiply"
OR
Use "Inner Shadow" instead of "Inner Glow".
The attached screenshot will clarify even more.

Photoshop eyedropper sets background colour, not foreground [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I've been putting up with this for probably too long. For some odd reason, when I used the Photoshop CS5 eyedropper tool, it sets the background colour - which is really annoying. I've never experienced this in all my years of using Photoshop. Each time I set a colour, I'm forced to then use the x keyboard shortcut to swap the background/foreground colours.
How do you get the eyedropper tool back to the default setting? (without re-installing :)
Wow - ok it was easy. Go to Window > Color, then ensure the foreground colour is the selected one. There's a really fine, almost un-noticable line around the one that is selected. Mine was set on the background colour.
You can also click on the one you want to set, in the toolbar, then pick the colour. That's what I usually do anyways I think!

PhotoShop Define Brush Preset [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I'm trying to make a brush that gives a sparkle effect. It's just a circle brush with a cross in the middle. Any way, when I try to define the brush preset, it says "Could not complete the command Define Brush Preset because the selected area is empty." Anyone know why this is happening?
Press CTRL + D and deselect whatever you have selected. If you attempt to define a brush preset without anything selected, it should turn the whole image into a brush, but if you are trying to make a selection then make sure that you are selected on the correct layer.

Photoshop: Copy and paste an image without trimming transparency [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I have an image fo this kind:
1000x1000 but only a portion of the image is opaque, think a filled circle on the left, other picels are transparent.
I want to copy/paste only a portion of the image with an area choosed by me:
I drag and drop the mouse so that part will be 400x100 but when i paste i have an image 300x76.
photoshop has trimmed my image, but i want it with the border of the image choosed by me, i want that coordinates.
preparing an image 400x100 blank and copying that image doesn't solve my problem because i must pan the image on the original position.
how can i copy/paste the image without trimming?
thanks
Your problem is because you're asking Photoshop to take into account an area that doesn't exist (it's transparent). You cannot "Copy" an area where nothing exists in Photoshop. Your only option is to place something (a colour) in the corners where the transparency exists, select your area, Copy Merged (using CTRL + SHIFT + C) and then delete the extra colour once you've pasted it.
There's no other way around it.
it depends by which method you are doing copy paste.
i suggest you to use marquee tool.
select marquee tool
drag it to your desired area,now copy and than paste it.,if its not copying the thing press cntrl+shift+c because most of the time,Photoshop memory don't behave dynamically.