Hi
Please consider adding an “Image.AddChannel(“mychannel”)” method.
Or maybe “Image.Copy()” could have an “add-copied-channel(s)-if-they’re-not-already-present-in-target-image” option.
Cheers
Bonsak
Hi
Please consider adding an “Image.AddChannel(“mychannel”)” method.
Or maybe “Image.Copy()” could have an “add-copied-channel(s)-if-they’re-not-already-present-in-target-image” option.
Cheers
Bonsak
Thank you for your feedback! I will add this to our wish list.
Currently, to add a channel, you can use Image.SetChannel( channel, value ). If the channel does not already exist, Image.SetChannel() will create it for you. For example:[code]img = Draft.Image.CreateImage( 640, 480 )
img.GetChannelNames()
img.SetChannel( ‘mychannel’, 0 )
img.GetChannelNames()
Ok! Didn’t know SetChannel could do that No need for an AddChannel function then.
Would still be great with an add functiion in image.Copy() though.
Cheers
Bonsak