Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / 3ds Max through 2008 / WIring gradient ramp flags
  RSS 2.0 ATOM  

WIring gradient ramp flags
Rate this thread
 
12110
 
Permlink of this thread  
avatar
  • reform
  • Posted: 15 May 2008 06:35 AM
  • Location: Glasgow
  • Total Posts: 199
  • Joined: 22 August 2006 07:22 AM

Is it possible to wire gradient ramp flags to each other?
I’ve tried to wire one flag to another with the following expression
(position + 5)

but this doesnt seem to work. Any ideas what I’m doing wrong?



patrick.reformstudios.com

Replies: 0
avatar

You cannot animate the 1st or 2nd flags for Position as they have no position parameter.  3rd flag and up can be wired if you want because they have position parameters.

Create a Gradient Ramp Map in a diffuse slot of a meterial for example, then open the Animatoin, Parameter Wiring, Wiring Dialog.  Create flag 4 and 5.  Close the Material Editor so you don’t get any errors while the UI updates.

Browse to Flag 4 position on the left hand, browse to flag 5 position on the right hand.

Connect from left to right. 

In the position field on the bottom right, type in something between 1 and 0.  It is in decimals, so 5 would not make any sense.  The smallest value is 0.0 at Flag 1, and the largest value is 1.0 at flag 2. 

(Position + .125) would work since it is greater than and less than the positions of flag 1 and 2.



Maneswar Cheemalapati [FA]

Replies: 0
avatar
  • reform
  • Posted: 15 May 2008 07:29 AM

Thanks for the quick reply!

Ah… I thought the position values were float values between 1 and 100 because querying the position of the flag through maxscript returns those values. Strange that the UI shows Integer values between 1 and 100, maxscript returns float values between 1 and 100, and to wire the parameter you need to use float values between 0 and 1 ! ...



patrick.reformstudios.com

Replies: 0
avatar
  • reform
  • Posted: 15 May 2008 07:31 AM

Hmm… Trying what you suggested doesnt seem to work either.



patrick.reformstudios.com

Replies: 0
avatar

Try it again.  I know it works because I did it.  But I tested it in Max 2009.  Check in your Maxscript Help to see if the Gradient Flag has position parameters yet.



Maneswar Cheemalapati [FA]

Replies: 0
avatar
  • reform
  • Posted: 15 May 2008 07:59 AM

My apologies. It does work. I was trying to wire it from right to left for some reason.

Thanks again!



patrick.reformstudios.com

Replies: 0
avatar

It shouldn’t really matter if you go left to right or right to left, since you’re just indicating which is the master object / parameter.  It should work whether you choose 5 to control flag 4, or vice versa.



Maneswar Cheemalapati [FA]

Replies: 0